public void ProcessAccount(CurrentAccount account)
 {
     foreach (var payee in account.DirectDebits)
     {
         directdebit.Process(payee);
     }
     foreach (var payee in account.StandingOrders)
     {
         standingOrder.Process(payee);
     }
 }
Exemple #2
0
 public void TakePayment(IProcessPayment paymentType, double amount)
 {
     paymentType.Process(amount);
 }