Esempio n. 1
0
 public IEnumerable <Resident> GetAll(string user)
 {
     return(_context.Residents.AsNoTracking().Where(ResidentQueries.GetAll(user)).OrderBy(x => x.Name));
 }
Esempio n. 2
0
 public IEnumerable <Resident> GetAll(string user)
 {
     return(_items.AsQueryable().Where(ResidentQueries.GetAll(user)));
 }
Esempio n. 3
0
        public void Should_Return_PedroIvo_Residents()
        {
            var result = _items.AsQueryable().Where(ResidentQueries.GetAll("Pedro Ivo"));

            Assert.AreEqual(5, result.Count());
        }