public void Withdraw(int amount, DateTime dateTime) { var balance = GetBalance(); _transactions.Add(TransactionFactory.Get(-amount, dateTime, balance)); }
public void Deposit(int depositAmount, DateTime dateTime) { var balance = GetBalance(); _transactions.Add(TransactionFactory.Get(depositAmount, dateTime, balance)); }