public void ListAllForApplicationTest() { var context = new MockContext <IPhoneNumber>(); context.Arrange(m => m.List(The <PhoneNumberQuery> .Is(q => q.Size.Value == 1000 && q.ApplicationId == "appId"), null)).Returns(new PhoneNumber[1]); var phoneNumber = new MockPhoneNumber(context); var items = phoneNumber.ListAllForApplication("appId"); Assert.Equal(1, items.Count()); }