Exemple #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));
        }
 public void Withdraw(decimal amount)
 {
     _transactionRepository.AddDebit(new Debit(amount, _clock.GetCurrentDate()));
 }