示例#1
0
 public void Service_Emprestimo_Deveria_Excluir_Emprestimo()
 {
     _emprestimo = ObjectMother.GetEmprestimoComId();
     _repository
     .Setup(l => l.Excluir(It.IsAny <int>()));
     _service.Excluir(_emprestimo);
     _repository.Verify(l => l.Excluir(_emprestimo.Id));
 }
示例#2
0
        public void Integration_DeleteEmprestimo_ShouldBeOK()
        {
            _emprestimo = ObjectMother.GetEmprestimoComId();
            _service.Excluir(_emprestimo);
            Emprestimo received = _service.Get(_emprestimo.Id);

            received.Should().BeNull();
        }