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

            transactionRepository.AddCredit(transaction);

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