Example #1
0
 private bool LocalTransfer(decimal ammount, BankAccountActor toAccount)
 {
     if (LocalWithdrawl(ammount))
     {
         toAccount.Deposit(ammount);
         return(true);
     }
     return(false);
 }
Example #2
0
 public Task <bool> Transfer(decimal ammount, BankAccountActor toAccount)
 {
     return(Perform(() => LocalTransfer(ammount, toAccount)));
 }