Esempio n. 1
0
        public void ShouldReturnSuccessWhenSendInvalidQuery()
        {
            var result = FakePetQuery.validQuery()
                         .AsQueryable()
                         .Where(PetQuery.GetAllByEmail("*****@*****.**"));

            Assert.AreEqual(0, result.Count());
        }
Esempio n. 2
0
 public List <Pet> GetAllByEmail(string Email)
 {
     return(_lunaPetShopContext.pets
            .AsNoTracking()
            .Include(p => p.User)
            .Where(PetQuery.GetAllByEmail(Email))
            .ToList());
 }