public IEnumerable <Condominium> GetAllActive(string user)
 {
     return(_context.Condominiums.AsNoTracking().Include("Apartments").Where(CondominiumQueries.GetAllActive(user)).OrderBy(x => x.Name));
 }
        public void Should_Return_Active_Condominiums_To_PedroIvo()
        {
            var result = _items.AsQueryable().Where(CondominiumQueries.GetAllActive("Pedro Ivo"));

            Assert.AreEqual(3, result.Count());
        }
 public IEnumerable <Condominium> GetAllActive(string user)
 {
     return(_items.AsQueryable().Where(CondominiumQueries.GetAllActive(user)));
 }