public DeliveryOrderProcessor( IOrderCalculationService calculationService, IServiceChargeCalculationService serviceChargeCalculationService) { this.calculationService = calculationService; this.serviceChargeCalculationService = serviceChargeCalculationService; }
public OrderRepository( IJobManager manager, SupportedOrderStore supportedOrderStore, AccountManager accountManager, IHRIDService hridService, IPaymentManager paymentManager, IVendorService vendorService ) { this.manager = manager; this.supportedOrderStore = supportedOrderStore; this.accountManager = accountManager; this.hridService = hridService; this.vendorService = vendorService; orderCalculationService = new DefaultOrderCalculationService(); serviceChargeCalculationService = new DefaultDeliveryServiceChargeCalculationService(); paymentService = new PaymentService(paymentManager); }
public OrderRepository( IJobManager manager, SupportedOrderStore supportedOrderStore, AccountManager accountManager, IHRIDService hridService, IPaymentManager paymentManager, IVendorService vendorService, IObserver <Job> jobSearchIndexSubject) { this.manager = manager; this.supportedOrderStore = supportedOrderStore; this.accountManager = accountManager; this.hridService = hridService; this.vendorService = vendorService; this.jobSearchIndexService = jobSearchIndexSubject; orderCalculationService = new DefaultOrderCalculationService(); serviceChargeCalculationService = new DefaultDeliveryServiceChargeCalculationService(); paymentService = new PaymentService(paymentManager); }