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)); }
public void Integration_DeleteEmprestimo_ShouldBeOK() { _emprestimo = ObjectMother.GetEmprestimoComId(); _service.Excluir(_emprestimo); Emprestimo received = _service.Get(_emprestimo.Id); received.Should().BeNull(); }