private void RecordDeposit(Guid recipientId, decimal amount, DateTime timestamp) { CurrentBalance += amount; var record = new AccountLog(timestamp, amount, CurrentBalance, recipientId); History.Add(record); }
private void RecordWithdrawal(Guid accountId, decimal amount, DateTime timestamp) { CurrentBalance -= amount; var record = new AccountLog(timestamp, -amount, CurrentBalance, accountId); History.Add(record); }