Ejemplo n.º 1
0
        public async Task CreateFailTransactionDebitAndCredit()
        {
            try
            {
                _transacaoDto.Valor = -10;
                await _transacaoService.CreateTransactionDebitAndCredit(_transacaoDto);

                Assert.True(false);
            }
            catch (TransacaoException ex)
            {
                Assert.Equal("Erro ao efetuar transação de Crédito, Valor não pode ser menor ou igual a 0 (Zero).", ex.Message);
            }
        }
Ejemplo n.º 2
0
 public async Task CreateTransactionDebitAndCredit(TransacaoDto transaction)
 {
     await _transacaoService.CreateTransactionDebitAndCredit(transaction);
 }