Exemplo n.º 1
0
        public void AddDebit()
        {
            var transactionRepository = new TransactionRepository();
            var transaction           = new Debit(Amount, Date);

            transactionRepository.AddCredit(new Credit(100, Date));
            transactionRepository.AddDebit(transaction);

            Assert.True(transactionRepository.GetTransactions().Contains(transaction));
        }
Exemplo n.º 2
0
 public void Withdraw(decimal amount)
 {
     _transactionRepository.AddDebit(new Debit(amount, _clock.GetCurrentDate()));
 }