public IEnumerable <Resident> GetAll(string user) { return(_context.Residents.AsNoTracking().Where(ResidentQueries.GetAll(user)).OrderBy(x => x.Name)); }
public IEnumerable <Resident> GetAll(string user) { return(_items.AsQueryable().Where(ResidentQueries.GetAll(user))); }
public void Should_Return_PedroIvo_Residents() { var result = _items.AsQueryable().Where(ResidentQueries.GetAll("Pedro Ivo")); Assert.AreEqual(5, result.Count()); }