In this case, you can directly arrange the behavior of the Find() method, like this:
NerdDinners nerdDinners =
Mock.Arrange(() => nerdDinners.Dinners.Find(2)).Returns(FakeDinners().FirstOrDefault());
var query = nerdDinners.Dinners.Find(2);
I hope this helps. Let me know if I can assist you further.
Share what you think about JustTrace & JustMock with us, so we can become even better! You can use the built-in feedback tool inside JustTrace, our forums
, or our JustTrace