예제 #1
0
 public OrdersController(
     IQuartetClientFactory                       clientFactory,
     IMappingService<Order,    OrderViewModel>   orderMapping,
     IMappingService<Customer, HCardViewModel>   hcardMapping,
     IMappingService<Address,  AddressViewModel> addressMapping,
     IMailingService                             mailingService,
     IInvoicingService                           invoicingService,
     IFeaturesConfigService                      featuresConfigService,
     IAppSettings                                appSettings,
     IConsultantContext                          consultantContext,
     IConsultantDataServiceClientFactory         consultantDataServiceClientFactory,
     IPromotionService                           promotionService,
     IProductCatalogClientFactory                productCatalogClientFactory,
     IInventoryService                           inventoryService,
     ISubsidiaryAccessor                         subsidiaryAccessor
 )
 {
     _clientFactory                      = clientFactory;
     _orderMapping                       = orderMapping;
     _hcardMapping                       = hcardMapping;
     _addressMapping                     = addressMapping;
     _mailingService                     = mailingService;
     _invoicingService                   = invoicingService;
     _featuresConfigService              = featuresConfigService;
     _appSettings                        = appSettings;
     _consultantContext                  = consultantContext;
     _consultantDataServiceClientFactory = consultantDataServiceClientFactory;
     _promotionService                   = promotionService;
     _productCatalogClientFactory        = productCatalogClientFactory;
     _inventoryService                   = inventoryService;
     _subsidiaryAccessor                 = subsidiaryAccessor;
 }
예제 #2
0
 public ETLinkComposer(
     IAppSettings appSettings,
     IConsultantContext consultantContext,
     ISubsidiaryAccessor subsidiaryAccessor,
     IFeaturesConfigService featuresConfigService
 )
 {
     _appSettings = appSettings;
     _consultantContext = consultantContext;
     _subsidiaryAccessor = subsidiaryAccessor;
     _featuresConfigService = featuresConfigService;
 }
예제 #3
0
 public InvoicingService(
                         IConsultantContext consultantContext,
                         IQuartetClientFactory clientFactory,
                         IAppSettings appSettings,
                         IEnvironmentConfig environmentConfig,
                         ISubsidiaryAccessor subsidiaryAccessor
                     )
     : base(appSettings, environmentConfig, subsidiaryAccessor)
 {
     _quartetClientFactory = clientFactory;
     _consultantContext    = consultantContext;
     _appSettings          = appSettings;
     _numberFormatCulture  = CultureInfo.CreateSpecificCulture(_appSettings.GetValue("Order_InvoiceReceipt_NumberFormatCulture"));
 }
예제 #4
0
 public CustomerExportService(
     IConsultantContext consultantContext, 
     IQuartetClientFactory clientFactory, 
     IAppSettings appSettings, 
     IConfigService configService,
     IEnvironmentConfig environmentConfig,
     ISubsidiaryAccessor subsidiaryAccessor
 )
     : base(appSettings, environmentConfig, subsidiaryAccessor)
 {
     _clientFactory     = clientFactory;
     _consultantContext = consultantContext;
     _appSettings       = appSettings;
     _configService     = configService;
 }
예제 #5
0
        public ProductsController(
            IAppSettings appSettings, 
            IProductCatalogClientFactory clientFactory,
            ISubsidiaryAccessor subsidiaryAccessor,
            IInventoryService inventoryService
        )
        {
            _appSettings        = appSettings;
            _clientFactory      = clientFactory;
            _subsidiaryAccessor = subsidiaryAccessor;
            _inventoryService   = inventoryService;

            var subsidiaryCode = _subsidiaryAccessor.GetSubsidiaryCode();
            _unavailableParts  = _inventoryService.GetUnavailableParts(subsidiaryCode);
        }
예제 #6
0
 public ConsultantContext(IConsultantDataServiceClientFactory clientFactory, ISubsidiaryAccessor subsidiaryAccessor)
 {
     _clientFactory      = clientFactory;
     _subsidiaryAccessor = subsidiaryAccessor;
 }
예제 #7
0
 public ExportServiceBase(IAppSettings appSettings, IEnvironmentConfig environmentConfig, ISubsidiaryAccessor subsidiaryAccessor)
 {
     _appSettings       = appSettings;
     _environmentConfig = environmentConfig;
     _subsidiaryAccessor = subsidiaryAccessor;
 }
예제 #8
0
 public DashboardController(IAppSettings appSettings, ISubsidiaryAccessor subsidiaryAccessor)
 {
     _appSettings        = appSettings;
     _subsidiaryAccessor = subsidiaryAccessor;
 }