public void ShouldReturnSuccessWhenSendInvalidQuery() { var result = FakePetQuery.validQuery() .AsQueryable() .Where(PetQuery.GetAllByEmail("*****@*****.**")); Assert.AreEqual(0, result.Count()); }
public List <Pet> GetAllByEmail(string Email) { return(_lunaPetShopContext.pets .AsNoTracking() .Include(p => p.User) .Where(PetQuery.GetAllByEmail(Email)) .ToList()); }