public void Integration_DeletarAposta_Corretamente() { _aposta = ObjectMother.GetApostaComId(); Action action = () => _service.Excluir(_aposta); action.Should().Throw <UnsupportedOperationException>(); }
public void Service_Aposta_Deveria_Excluir_Aposta() { _aposta = ObjectMother.GetApostaComId(); _apostaRepository .Setup(x => x.Excluir(It.IsAny <int>())); _service.Excluir(_aposta); _apostaRepository.Verify(x => x.Excluir(_aposta.Id)); }