예제 #1
0
        public void EmprestimoRepositorio_Salvar_ShouldBeOk()
        {
            Emprestimo emprestimo = ObjectMotherEmprestimo.GetEmprestimo();

            emprestimo.Livro = _livro;
            Emprestimo result = _repositorio.Salvar(emprestimo);

            result.Id.Should().BeGreaterThan(0);
        }
 public Emprestimo Adicionar(Emprestimo emprestimo)
 {
     emprestimo.Validar();
     return(_repositorio.Salvar(emprestimo));
 }