Exemplo n.º 1
0
        public void Integration_DeletarAposta_Corretamente()
        {
            _aposta = ObjectMother.GetApostaComId();
            Action action = () => _service.Excluir(_aposta);

            action.Should().Throw <UnsupportedOperationException>();
        }
Exemplo n.º 2
0
        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));
        }