Exemple #1
0
        public void EmprestimoRepositorio_GetAll_ShouldBeOk()
        {
            int sizeListExpected = 1;
            int idFirstEmprestimoListExpected = 1;
            List <Emprestimo> result          = _repositorio.GetAll() as List <Emprestimo>;

            result.Should().NotBeNull();
            result.Count().Should().Be(sizeListExpected);
            result.First().Id.Should().Be(idFirstEmprestimoListExpected);
        }
 public IEnumerable <Emprestimo> GetAll()
 {
     return(_repositorio.GetAll());
 }