Skip to content

Instantly share code, notes, and snippets.

@saurabhpati
Created April 24, 2018 16:47
Show Gist options
  • Save saurabhpati/74cbaa3cd0f0a4e531fa11830ff08088 to your computer and use it in GitHub Desktop.
Save saurabhpati/74cbaa3cd0f0a4e531fa11830ff08088 to your computer and use it in GitHub Desktop.
long mock
mockSet.As<IQueryable<Book>>().Setup(m => m.Provider).Returns(books.Provider); 
mockSet.As<IQueryable<Book>>().Setup(m => m.Expression).Returns(books.Expression); 
mockSet.As<IQueryable<Book>>().Setup(m => m.ElementType).Returns(books.ElementType); 
mockSet.As<IQueryable<Book>>().Setup(m => m.GetEnumerator()).Returns(books.GetEnumerator());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment