Beispiel #1
0
        public void Withdraw(Account account, decimal amount, string operationName = null)
        {
            Operation operation = new Operation(operationName, -amount);

            account.AddOperation(operation);
        }
Beispiel #2
0
        public void Deposit(Account account, decimal amount, string operationName = null)
        {
            Operation operation = new Operation(operationName, amount);

            account.AddOperation(operation);
        }