Example #1
0
 public IEnumerable <Sala> GetAll()
 {
     try
     {
         return(_salaRepository.GetAll());
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #2
0
        public void Repository_Sala_Deveria_BuscarTodos_Corretamente()
        {
            List <Sala> salas = ObjectMother.GetSalas();

            foreach (var item in salas)
            {
                _repository.Adicionar(item);
            }
            var list_sala = _repository.GetAll();

            list_sala.Count.Should().Be(3);
        }
 public List <Sala> GetAll()
 {
     return(_salaRepository.GetAll());
 }
 public IEnumerable <Sala> GetAll()
 {
     return(_salaRepository.GetAll());
 }