Esempio n. 1
0
        public void Withdraw(int amount, DateTime dateTime)
        {
            var balance = GetBalance();

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

            _transactions.Add(TransactionFactory.Get(depositAmount, dateTime, balance));
        }