Пример #1
0
 public MoneyTransferCommand(BankAccount3 from,
                             BankAccount3 to, int amount)
 {
     AddRange(new[]
     {
         new BankAccountCommand3(from,
                                 BankAccountCommand3.Action.Withdraw, amount),
         new BankAccountCommand3(to,
                                 BankAccountCommand3.Action.Deposit, amount)
     });
 }
Пример #2
0
 public BankAccountCommand3(BankAccount3 account, Action action, int amount)
 {
     this.account = account;
     this.action  = action;
     this.amount  = amount;
 }