public PaymentProcessor(PaymentLog loggingservice, ICardPaymentProcessor cardPaymentService,
                         ICashPaymentProcessor cashPaymentService)
 {
     Loggingservice     = loggingservice;
     CardPaymentService = cardPaymentService;
     CashPaymentService = cashPaymentService;
 }
Exemple #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
     };
 }
Exemple #3
0
 public CashPaymentProcessor(PaymentLog loggingservice)
 {
     _loggingService = loggingservice;
 }