Exemple #1
0
 public OrderConverter(ILogger <OrderConverter> logger,
                       DeliveryPointConverter deliveryPointConverter,
                       SmsPaymentStatusConverter smsPaymentConverter,
                       PaymentTypeConverter paymentTypeConverter)
 {
     this._logger = logger ?? throw new ArgumentNullException(nameof(logger));
     this._deliveryPointConverter = deliveryPointConverter ?? throw new ArgumentNullException(nameof(deliveryPointConverter));
     this._smsPaymentConverter    = smsPaymentConverter ?? throw new ArgumentNullException(nameof(smsPaymentConverter));
     this._paymentTypeConverter   = paymentTypeConverter ?? throw new ArgumentNullException(nameof(paymentTypeConverter));
 }
Exemple #2
0
 public RouteListConverter(ILogger <RouteListConverter> logger,
                           DeliveryPointConverter deliveryPointConverter,
                           RouteListStatusConverter routeListStatusConverter,
                           RouteListAddressStatusConverter routeListAddressStatusConverter,
                           RouteListCompletionStatusConverter routeListCompletionStatusConverter)
 {
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
     _deliveryPointConverter             = deliveryPointConverter ?? throw new ArgumentNullException(nameof(deliveryPointConverter));
     _routeListStatusConverter           = routeListStatusConverter ?? throw new ArgumentNullException(nameof(routeListStatusConverter));
     _routeListAddressStatusConverter    = routeListAddressStatusConverter ?? throw new ArgumentNullException(nameof(routeListAddressStatusConverter));
     _routeListCompletionStatusConverter = routeListCompletionStatusConverter ?? throw new ArgumentNullException(nameof(routeListCompletionStatusConverter));
 }