Beispiel #1
0
 public SmsPaymentService(
     IPaymentController paymentController,
     IDriverPaymentService androidDriverService,
     IOrderParametersProvider orderParametersProvider,
     SmsPaymentFileCache smsPaymentFileCache
     )
 {
     this.paymentController       = paymentController ?? throw new ArgumentNullException(nameof(paymentController));
     this.androidDriverService    = androidDriverService ?? throw new ArgumentNullException(nameof(androidDriverService));
     this.orderParametersProvider = orderParametersProvider ?? throw new ArgumentNullException(nameof(orderParametersProvider));
     this.smsPaymentFileCache     = smsPaymentFileCache ?? throw new ArgumentNullException(nameof(smsPaymentFileCache));
 }
Beispiel #2
0
 public SmsPaymentService(
     IPaymentController paymentController,
     ISmsPaymentStatusNotificationReciever smsPaymentStatusNotificationReciever,
     IOrderParametersProvider orderParametersProvider,
     SmsPaymentFileCache smsPaymentFileCache,
     ISmsPaymentDTOFactory smsPaymentDTOFactory,
     ISmsPaymentValidator smsPaymentValidator
     )
 {
     _paymentController = paymentController ?? throw new ArgumentNullException(nameof(paymentController));
     _smsPaymentStatusNotificationReciever = smsPaymentStatusNotificationReciever ?? throw new ArgumentNullException(nameof(smsPaymentStatusNotificationReciever));
     _orderParametersProvider = orderParametersProvider ?? throw new ArgumentNullException(nameof(orderParametersProvider));
     _smsPaymentFileCache     = smsPaymentFileCache ?? throw new ArgumentNullException(nameof(smsPaymentFileCache));
     _smsPaymentDTOFactory    = smsPaymentDTOFactory ?? throw new ArgumentNullException(nameof(smsPaymentDTOFactory));
     _smsPaymentValidator     = smsPaymentValidator ?? throw new ArgumentNullException(nameof(smsPaymentValidator));
 }
Beispiel #3
0
 public CachePaymentsWorker(SmsPaymentFileCache smsPaymentFileCache, ISmsPaymentService smsPaymentService)
 {
     this.smsPaymentFileCache = smsPaymentFileCache ?? throw new ArgumentNullException(nameof(smsPaymentFileCache));
     this.smsPaymentService   = smsPaymentService ?? throw new ArgumentNullException(nameof(smsPaymentService));
 }