Created
April 24, 2018 16:47
-
-
Save saurabhpati/74cbaa3cd0f0a4e531fa11830ff08088 to your computer and use it in GitHub Desktop.
long mock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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