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