Ejemplo n.º 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)
     });
 }
Ejemplo n.º 2
0
 public BankAccountCommand3(BankAccount3 account, Action action, int amount)
 {
     this.account = account;
     this.action  = action;
     this.amount  = amount;
 }