public IEnumerable <Sala> GetAll() { try { return(_salaRepository.GetAll()); } catch (Exception ex) { throw ex; } }
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()); }