예제 #1
0
 public DeliveryOrderProcessor(
     IOrderCalculationService calculationService, 
     IServiceChargeCalculationService serviceChargeCalculationService)
 {
     this.calculationService = calculationService;
     this.serviceChargeCalculationService = serviceChargeCalculationService;
 }
예제 #2
0
 public DeliveryOrderProcessor(
     IOrderCalculationService calculationService,
     IServiceChargeCalculationService serviceChargeCalculationService)
 {
     this.calculationService = calculationService;
     this.serviceChargeCalculationService = serviceChargeCalculationService;
 }
예제 #3
0
        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);
        }
예제 #4
0
        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);
        }