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

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