Esempio n. 1
0
        private void RecordDeposit(Guid recipientId, decimal amount, DateTime timestamp)
        {
            CurrentBalance += amount;
            var record = new AccountLog(timestamp, amount, CurrentBalance, recipientId);

            History.Add(record);
        }
Esempio n. 2
0
        private void RecordWithdrawal(Guid accountId, decimal amount, DateTime timestamp)
        {
            CurrentBalance -= amount;
            var record = new AccountLog(timestamp, -amount, CurrentBalance, accountId);

            History.Add(record);
        }