Exemple #1
0
        public void PerformDeposit(Account account, decimal amount, string description, DateTimeOffset depositDate)
        {
            Account acc = AccountList.Cast <Account>().SingleOrDefault(i => i.AccountNumber == account.AccountNumber);

            acc.Balance += amount;
            TransactionLog.Add(new StatementRow(acc, depositDate, amount, acc.Balance, description));
        }