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