コード例 #1
0
 public void ProcessAccount(CurrentAccount account)
 {
     foreach (var payee in account.DirectDebits)
     {
         directdebit.Process(payee);
     }
     foreach (var payee in account.StandingOrders)
     {
         standingOrder.Process(payee);
     }
 }
コード例 #2
0
ファイル: PaymentSystem.cs プロジェクト: Kerrialn/self-dev
 public void TakePayment(IProcessPayment paymentType, double amount)
 {
     paymentType.Process(amount);
 }