Exemplo n.º 1
0
 public Transfer(BankAccount source, BankAccount destination, decimal _value)
 {
     sourceAccount = new BankAccountService(source);
     destinationAccount = new BankAccountService(destination);
     this.value = _value;
 }
Exemplo n.º 2
0
 public Deposit(BankAccount bankAccount, decimal amount)
 {
     depositAccount = new BankAccountService(bankAccount);
     value = amount;
 }