public MoneyTransferCommand(BankAccount3 from, BankAccount3 to, int amount) { AddRange(new[] { new BankAccountCommand3(from, BankAccountCommand3.Action.Withdraw, amount), new BankAccountCommand3(to, BankAccountCommand3.Action.Deposit, amount) }); }
public BankAccountCommand3(BankAccount3 account, Action action, int amount) { this.account = account; this.action = action; this.amount = amount; }