예제 #1
0
 public PaymentProcessor(PaymentLog loggingservice, ICardPaymentProcessor cardPaymentService,
                         ICashPaymentProcessor cashPaymentService)
 {
     Loggingservice     = loggingservice;
     CardPaymentService = cardPaymentService;
     CashPaymentService = cashPaymentService;
 }
예제 #2
0
 public CardPaymentProcessor(PaymentLog loggingservice)
 {
     _loggingService = loggingservice;
     AccountData     = new Dictionary <string, double>
     {
         ["Arjen"]   = 5.0,
         ["Bert"]    = 3.5,
         ["Chris"]   = 7.0,
         ["Daan"]    = 6.0,
         ["Kenneth"] = 0.5
     };
 }
예제 #3
0
 public CashPaymentProcessor(PaymentLog loggingservice)
 {
     _loggingService = loggingservice;
 }