Пример #1
0
 public ProductController(IProductService productService, 
     IProductTemplateService productTemplateService,
     ICategoryService categoryService, IManufacturerService manufacturerService,
     IWorkContext workContext, ILanguageService languageService, 
     ILocalizationService localizationService, ILocalizedEntityService localizedEntityService,
     ISpecificationAttributeService specificationAttributeService, IPictureService pictureService,
     ITaxCategoryService taxCategoryService, IProductTagService productTagService,
     ICopyProductService copyProductService, IPdfService pdfService,
     IExportManager exportManager, IImportManager importManager,
     ICustomerActivityService customerActivityService,
     IPermissionService permissionService, AdminAreaSettings adminAreaSettings)
 {
     this._productService = productService;
     this._productTemplateService = productTemplateService;
     this._categoryService = categoryService;
     this._manufacturerService = manufacturerService;
     this._workContext = workContext;
     this._languageService = languageService;
     this._localizationService = localizationService;
     this._localizedEntityService = localizedEntityService;
     this._specificationAttributeService = specificationAttributeService;
     this._pictureService = pictureService;
     this._taxCategoryService = taxCategoryService;
     this._productTagService = productTagService;
     this._copyProductService = copyProductService;
     this._pdfService = pdfService;
     this._exportManager = exportManager;
     this._importManager = importManager;
     this._customerActivityService = customerActivityService;
     this._permissionService = permissionService;
     this._adminAreaSettings = adminAreaSettings;
 }
        public ProductImporter(
			IRepository<ProductPicture> productPictureRepository,
			IRepository<ProductManufacturer> productManufacturerRepository,
			IRepository<ProductCategory> productCategoryRepository,
			IRepository<Product> productRepository,
			ICommonServices services,
			ILocalizedEntityService localizedEntityService,
			IPictureService pictureService,
			IManufacturerService manufacturerService,
			ICategoryService categoryService,
			IProductService productService,
			IProductTemplateService productTemplateService,
			FileDownloadManager fileDownloadManager)
        {
            _productPictureRepository = productPictureRepository;
            _productManufacturerRepository = productManufacturerRepository;
            _productCategoryRepository = productCategoryRepository;
            _productRepository = productRepository;
            _services = services;
            _localizedEntityService = localizedEntityService;
            _pictureService = pictureService;
            _manufacturerService = manufacturerService;
            _categoryService = categoryService;
            _productService = productService;
            _productTemplateService = productTemplateService;
            _fileDownloadManager = fileDownloadManager;
        }
Пример #3
0
        public ExportManager(ICategoryService categoryService,
            IManufacturerService manufacturerService,
            IProductService productService,
			IProductAttributeService productAttributeService,
            IProductTemplateService productTemplateService,
            IPictureService pictureService,
            INewsLetterSubscriptionService newsLetterSubscriptionService,
            ILanguageService languageService,
			MediaSettings mediaSettings,
			ICommonServices services,
            IStoreMappingService storeMappingService)
        {
            _categoryService = categoryService;
            _manufacturerService = manufacturerService;
            _productService = productService;
			_productAttributeService = productAttributeService;
			_productTemplateService = productTemplateService;
            _pictureService = pictureService;
            _newsLetterSubscriptionService = newsLetterSubscriptionService;
            _languageService = languageService;
			_mediaSettings = mediaSettings;
			_services = services;
            _storeMappingService = storeMappingService;

			Logger = NullLogger.Instance;
        }
Пример #4
0
        public CatalogController(ICategoryService categoryService, 
            IManufacturerService manufacturerService, IProductService productService, 
            IProductTemplateService productTemplateService,
            ICategoryTemplateService categoryTemplateService,
            IManufacturerTemplateService manufacturerTemplateService,
            IProductAttributeService productAttributeService, IProductAttributeParser productAttributeParser, 
            IWorkContext workContext, ITaxService taxService, ICurrencyService currencyService,
            IPictureService pictureService, ILocalizationService localizationService,
            IPriceCalculationService priceCalculationService, IPriceFormatter priceFormatter,
            IWebHelper webHelper, ISpecificationAttributeService specificationAttributeService,
            ICustomerContentService customerContentService, IDateTimeHelper dateTimeHelper,
            IShoppingCartService shoppingCartService,
            IRecentlyViewedProductsService recentlyViewedProductsService, ICompareProductsService compareProductsService,
            IWorkflowMessageService workflowMessageService, IProductTagService productTagService,
            IOrderReportService orderReportService, ICustomerService customerService,
            IBackInStockSubscriptionService backInStockSubscriptionService,
            IPermissionService permissionService,
            MediaSettings mediaSetting, CatalogSettings catalogSettings,
            ShoppingCartSettings shoppingCartSettings, StoreInformationSettings storeInformationSettings,
            LocalizationSettings localizationSettings, CustomerSettings customerSettings, ICacheManager cacheManager)
        {
            this._categoryService = categoryService;
            this._manufacturerService = manufacturerService;
            this._productService = productService;
            this._productTemplateService = productTemplateService;
            this._categoryTemplateService = categoryTemplateService;
            this._manufacturerTemplateService = manufacturerTemplateService;
            this._productAttributeService = productAttributeService;
            this._productAttributeParser = productAttributeParser;
            this._workContext = workContext;
            this._taxService = taxService;
            this._currencyService = currencyService;
            this._pictureService = pictureService;
            this._localizationService = localizationService;
            this._priceCalculationService = priceCalculationService;
            this._priceFormatter = priceFormatter;
            this._webHelper = webHelper;
            this._specificationAttributeService = specificationAttributeService;
            this._customerContentService = customerContentService;
            this._dateTimeHelper = dateTimeHelper;
            this._shoppingCartService = shoppingCartService;
            this._recentlyViewedProductsService = recentlyViewedProductsService;
            this._compareProductsService = compareProductsService;
            this._workflowMessageService = workflowMessageService;
            this._productTagService = productTagService;
            this._orderReportService = orderReportService;
            this._customerService = customerService;
            this._backInStockSubscriptionService = backInStockSubscriptionService;
            this._permissionService = permissionService;

            this._mediaSetting = mediaSetting;
            this._catalogSettings = catalogSettings;
            this._shoppingCartSettings = shoppingCartSettings;
            this._storeInformationSettings = storeInformationSettings;
            this._localizationSettings = localizationSettings;
            this._customerSettings = customerSettings;

            this._cacheManager = cacheManager;
        }
 public SelectSellController(IProductService productService,
     IProductTemplateService productTemplateService,
     ICategoryService categoryService,
     IManufacturerService manufacturerService,
     ICustomerService customerService,
     IUrlRecordService urlRecordService,
     IWorkContext workContext,
     ILanguageService languageService,
     ILocalizationService localizationService,
     ILocalizedEntityService localizedEntityService,
     ISpecificationAttributeService specificationAttributeService,
     IPictureService pictureService,
     ITaxCategoryService taxCategoryService,
     IProductTagService productTagService,
     ICopyProductService copyProductService,
     IPdfService pdfService,
     IExportManager exportManager,
     IImportManager importManager,
     ICustomerActivityService customerActivityService,
     IPermissionService permissionService,
     IAclService aclService,
     IStoreService storeService,
     IOrderService orderService,
     IStoreMappingService storeMappingService,
     IVendorService vendorService,
     IShippingService shippingService,
     IShipmentService shipmentService,
     ICurrencyService currencyService,
     CurrencySettings currencySettings,
     IMeasureService measureService,
     MeasureSettings measureSettings,
     AdminAreaSettings adminAreaSettings,
     IDateTimeHelper dateTimeHelper,
     IDiscountService discountService,
     IProductAttributeService productAttributeService,
     IBackInStockSubscriptionService backInStockSubscriptionService,
     IShoppingCartService shoppingCartService,
     IProductAttributeFormatter productAttributeFormatter,
     IProductAttributeParser productAttributeParser,
     IDownloadService downloadService,
     IStoreContext storeContext,
     IRepository<StoreMapping> storeMapping)
 {
     _workContext = workContext;
     _productService = productService;
     _pictureService = pictureService;
     _localizationService = localizationService;
     _categoryService = categoryService;
     _manufacturerService = manufacturerService;
     _storeService = storeService;
     _shippingService = shippingService;
     _vendorService = vendorService;
     _storeMappingService = storeMappingService;
     _storeContext = storeContext;
     _storeMapping = storeMapping;
 }
Пример #6
0
 public TemplateController(ICategoryTemplateService categoryTemplateService,
     IManufacturerTemplateService manufacturerTemplateService,
     IProductTemplateService productTemplateService,
     IPermissionService permissionService)
 {
     this._categoryTemplateService = categoryTemplateService;
     this._manufacturerTemplateService = manufacturerTemplateService;
     this._productTemplateService = productTemplateService;
     this._permissionService = permissionService;
 }
Пример #7
0
 public TemplateController(ICategoryTemplateService categoryTemplateService,
                           IManufacturerTemplateService manufacturerTemplateService,
                           IProductTemplateService productTemplateService,
                           ITopicTemplateService topicTemplateService)
 {
     _categoryTemplateService     = categoryTemplateService;
     _manufacturerTemplateService = manufacturerTemplateService;
     _productTemplateService      = productTemplateService;
     _topicTemplateService        = topicTemplateService;
 }
Пример #8
0
 public TemplateModelFactory(ICategoryTemplateService categoryTemplateService,
                             IManufacturerTemplateService manufacturerTemplateService,
                             IProductTemplateService productTemplateService,
                             ITopicTemplateService topicTemplateService)
 {
     this._categoryTemplateService     = categoryTemplateService;
     this._manufacturerTemplateService = manufacturerTemplateService;
     this._productTemplateService      = productTemplateService;
     this._topicTemplateService        = topicTemplateService;
 }
Пример #9
0
 public TemplateController(ICategoryTemplateService categoryTemplateService,
                           IPermissionService permissionService,
                           IProductTemplateService productTemplateService,
                           ITemplateModelFactory templateModelFactory,
                           ITopicTemplateService topicTemplateService)
 {
     this._categoryTemplateService = categoryTemplateService;
     this._permissionService       = permissionService;
     this._productTemplateService  = productTemplateService;
     this._templateModelFactory    = templateModelFactory;
     this._topicTemplateService    = topicTemplateService;
 }
Пример #10
0
 public AbcProductModelFactory(
     CaptchaSettings captchaSettings,
     CatalogSettings catalogSettings,
     CustomerSettings customerSettings,
     ICategoryService categoryService,
     ICurrencyService currencyService,
     ICustomerService customerService,
     IDateRangeService dateRangeService,
     IDateTimeHelper dateTimeHelper,
     IDownloadService downloadService,
     IGenericAttributeService genericAttributeService,
     ILocalizationService localizationService,
     IManufacturerService manufacturerService,
     IPermissionService permissionService,
     IPictureService pictureService,
     IPriceCalculationService priceCalculationService,
     IPriceFormatter priceFormatter,
     IProductAttributeParser productAttributeParser,
     IProductAttributeService productAttributeService,
     IProductService productService,
     IProductTagService productTagService,
     IProductTemplateService productTemplateService,
     IReviewTypeService reviewTypeService,
     ISpecificationAttributeService specificationAttributeService,
     IStaticCacheManager staticCacheManager,
     IStoreContext storeContext,
     IShoppingCartModelFactory shoppingCartModelFactory,
     ITaxService taxService,
     IUrlRecordService urlRecordService,
     IVendorService vendorService,
     IWebHelper webHelper,
     IWorkContext workContext,
     MediaSettings mediaSettings,
     OrderSettings orderSettings,
     SeoSettings seoSettings,
     ShippingSettings shippingSettings,
     VendorSettings vendorSettings,
     IAbcMattressListingPriceService abcMattressListingPriceService)
     : base(captchaSettings, catalogSettings, customerSettings,
            categoryService, currencyService, customerService, dateRangeService,
            dateTimeHelper, downloadService, genericAttributeService, localizationService,
            manufacturerService, permissionService, pictureService, priceCalculationService,
            priceFormatter, productAttributeParser, productAttributeService, productService,
            productTagService, productTemplateService, reviewTypeService, specificationAttributeService,
            staticCacheManager, storeContext, shoppingCartModelFactory, taxService, urlRecordService,
            vendorService, webHelper, workContext, mediaSettings, orderSettings, seoSettings,
            shippingSettings, vendorSettings
            )
 {
     _webHelper = webHelper;
     _abcMattressListingPriceService = abcMattressListingPriceService;
     _priceFormatter = priceFormatter;
 }
Пример #11
0
 public TemplateController(ICategoryTemplateService categoryTemplateService,
                           IManufacturerTemplateService manufacturerTemplateService,
                           IProductTemplateService productTemplateService,
                           ITopicTemplateService topicTemplateService,
                           IPermissionService permissionService)
 {
     this._categoryTemplateService     = categoryTemplateService;
     this._manufacturerTemplateService = manufacturerTemplateService;
     this._productTemplateService      = productTemplateService;
     this._topicTemplateService        = topicTemplateService;
     this._permissionService           = permissionService;
 }
Пример #12
0
 public TemplateController(ICategoryTemplateService categoryTemplateService,
                           IDestinationTemplateService destinationTemplateService,
                           IProductTemplateService productTemplateService,
                           ITopicTemplateService topicTemplateService,
                           IPermissionService permissionService)
 {
     this._categoryTemplateService    = categoryTemplateService;
     this._destinationTemplateService = destinationTemplateService;
     this._productTemplateService     = productTemplateService;
     this._topicTemplateService       = topicTemplateService;
     this._permissionService          = permissionService;
 }
Пример #13
0
 public TemplateController(ICategoryTemplateService categoryTemplateService,
                           IManufacturerTemplateService manufacturerTemplateService,
                           IProductTemplateService productTemplateService,
                           IPermissionService permissionService,
                           ILocalizationService localizationService)
 {
     this._categoryTemplateService     = categoryTemplateService;
     this._manufacturerTemplateService = manufacturerTemplateService;
     this._productTemplateService      = productTemplateService;
     this._permissionService           = permissionService;
     this._localizationService         = localizationService;
 }
Пример #14
0
 public BaseAdminModelFactory(ICategoryService categoryService,
                              ICategoryTemplateService categoryTemplateService,
                              ICountryService countryService,
                              ICurrencyService currencyService,
                              ICustomerActivityService customerActivityService,
                              ICustomerService customerService,
                              IDateRangeService dateRangeService,
                              IDateTimeHelper dateTimeHelper,
                              IEmailAccountService emailAccountService,
                              ILanguageService languageService,
                              ILocalizationService localizationService,
                              IManufacturerService manufacturerService,
                              IManufacturerTemplateService manufacturerTemplateService,
                              IPluginFinder pluginFinder,
                              IProductTemplateService productTemplateService,
                              IShippingService shippingService,
                              IStateProvinceService stateProvinceService,
                              IStaticCacheManager cacheManager,
                              IStoreService storeService,
                              ITaxCategoryService taxCategoryService,
                              ITopicTemplateService topicTemplateService,
                              IVendorService vendorService,
                              IDepartmentService DepartmentService,
                              IServiceService ServiceService,
                              IDoctorService DoctorService)
 {
     this._categoryService             = categoryService;
     this._categoryTemplateService     = categoryTemplateService;
     this._countryService              = countryService;
     this._currencyService             = currencyService;
     this._customerActivityService     = customerActivityService;
     this._customerService             = customerService;
     this._dateRangeService            = dateRangeService;
     this._dateTimeHelper              = dateTimeHelper;
     this._emailAccountService         = emailAccountService;
     this._languageService             = languageService;
     this._localizationService         = localizationService;
     this._manufacturerService         = manufacturerService;
     this._manufacturerTemplateService = manufacturerTemplateService;
     this._pluginFinder           = pluginFinder;
     this._productTemplateService = productTemplateService;
     this._shippingService        = shippingService;
     this._stateProvinceService   = stateProvinceService;
     this._cacheManager           = cacheManager;
     this._storeService           = storeService;
     this._taxCategoryService     = taxCategoryService;
     this._topicTemplateService   = topicTemplateService;
     this._vendorService          = vendorService;
     this._departmentService      = DepartmentService;
     this._serviceService         = ServiceService;
     this._doctorService          = DoctorService;
 }
Пример #15
0
 public TemplateController(ICategoryTemplateService categoryTemplateService,
                           IManufacturerTemplateService manufacturerTemplateService,
                           IPermissionService permissionService,
                           IProductTemplateService productTemplateService,
                           ITemplateModelFactory templateModelFactory,
                           ITopicTemplateService topicTemplateService)
 {
     _categoryTemplateService     = categoryTemplateService;
     _manufacturerTemplateService = manufacturerTemplateService;
     _permissionService           = permissionService;
     _productTemplateService      = productTemplateService;
     _templateModelFactory        = templateModelFactory;
     _topicTemplateService        = topicTemplateService;
 }
 public ProductController(IProductService productService, 
     IProductTemplateService productTemplateService,
     ICategoryService categoryService, IManufacturerService manufacturerService,
     ICustomerService customerService,
     IUrlRecordService urlRecordService, IWorkContext workContext, ILanguageService languageService,
     ILocalizationService localizationService, ILocalizedEntityService localizedEntityService,
     ISpecificationAttributeService specificationAttributeService, IPictureService pictureService,
     ITaxCategoryService taxCategoryService, IProductTagService productTagService,
     ICopyProductService copyProductService, IPdfService pdfService,
     IExportManager exportManager, IImportManager importManager,
     ICustomerActivityService customerActivityService,
     IPermissionService permissionService, IAclService aclService,
     IStoreService storeService, IStoreMappingService storeMappingService,
     IVendorService vendorService,
     ICurrencyService currencyService, CurrencySettings currencySettings,
     IMeasureService measureService, MeasureSettings measureSettings,
     PdfSettings pdfSettings, AdminAreaSettings adminAreaSettings)
 {
     this._productService = productService;
     this._productTemplateService = productTemplateService;
     this._categoryService = categoryService;
     this._manufacturerService = manufacturerService;
     this._customerService = customerService;
     this._urlRecordService = urlRecordService;
     this._workContext = workContext;
     this._languageService = languageService;
     this._localizationService = localizationService;
     this._localizedEntityService = localizedEntityService;
     this._specificationAttributeService = specificationAttributeService;
     this._pictureService = pictureService;
     this._taxCategoryService = taxCategoryService;
     this._productTagService = productTagService;
     this._copyProductService = copyProductService;
     this._pdfService = pdfService;
     this._exportManager = exportManager;
     this._importManager = importManager;
     this._customerActivityService = customerActivityService;
     this._permissionService = permissionService;
     this._aclService = aclService;
     this._storeService = storeService;
     this._storeMappingService = storeMappingService;
     this._vendorService = vendorService;
     this._currencyService = currencyService;
     this._currencySettings = currencySettings;
     this._measureService = measureService;
     this._measureSettings = measureSettings;
     this._pdfSettings = pdfSettings;
     this._adminAreaSettings = adminAreaSettings;
 }
Пример #17
0
        public new void SetUp()
        {
            _categoryService               = MockRepository.GenerateMock <ICategoryService>();
            _manufacturerService           = MockRepository.GenerateMock <IManufacturerService>();
            _productService                = MockRepository.GenerateMock <IProductService>();
            _productTemplateService        = MockRepository.GenerateMock <IProductTemplateService>();
            _pictureService                = MockRepository.GenerateMock <IPictureService>();
            _newsLetterSubscriptionService = MockRepository.GenerateMock <INewsLetterSubscriptionService>();
            _languageService               = MockRepository.GenerateMock <ILanguageService>();
            _mediaSettings  = MockRepository.GenerateMock <MediaSettings>();
            _commonServices = MockRepository.GenerateMock <ICommonServices>();

            _exportManager = new ExportManager(_categoryService, _manufacturerService, _productService, _productTemplateService, _pictureService,
                                               _newsLetterSubscriptionService, _languageService, _mediaSettings, _commonServices);
        }
 public ProductModelFactory(CaptchaSettings captchaSettings,
                            CatalogSettings catalogSettings,
                            CustomerSettings customerSettings,
                            ICategoryService categoryService,
                            ICustomerService customerService,
                            IDateTimeHelper dateTimeHelper,
                            IDownloadService downloadService,
                            ILocalizationService localizationService,
                            IPermissionService permissionService,
                            IPictureService pictureService,
                            IProductService productService,
                            IProductTagService productTagService,
                            IProductTemplateService productTemplateService,
                            IReviewTypeService reviewTypeService,
                            IStaticCacheManager cacheManager,
                            IStoreContext storeContext,
                            IUrlRecordService urlRecordService,
                            IVendorService vendorService,
                            IWebHelper webHelper,
                            IWorkContext workContext,
                            MediaSettings mediaSettings,
                            SeoSettings seoSettings,
                            VendorSettings vendorSettings)
 {
     this._captchaSettings        = captchaSettings;
     this._catalogSettings        = catalogSettings;
     this._customerSettings       = customerSettings;
     this._categoryService        = categoryService;
     this._customerService        = customerService;
     this._dateTimeHelper         = dateTimeHelper;
     this._downloadService        = downloadService;
     this._localizationService    = localizationService;
     this._permissionService      = permissionService;
     this._pictureService         = pictureService;
     this._productService         = productService;
     this._productTagService      = productTagService;
     this._productTemplateService = productTemplateService;
     this._reviewTypeService      = reviewTypeService;
     this._cacheManager           = cacheManager;
     this._storeContext           = storeContext;
     this._urlRecordService       = urlRecordService;
     this._vendorService          = vendorService;
     this._webHelper      = webHelper;
     this._workContext    = workContext;
     this._mediaSettings  = mediaSettings;
     this._seoSettings    = seoSettings;
     this._vendorSettings = vendorSettings;
 }
 public BaseAdminModelFactory(ICategoryService categoryService,
                              ICategoryTemplateService categoryTemplateService,
                              ICountryService countryService,
                              ICurrencyService currencyService,
                              ICustomerActivityService customerActivityService,
                              ICustomerService customerService,
                              IDateRangeService dateRangeService,
                              IDateTimeHelper dateTimeHelper,
                              IEmailAccountService emailAccountService,
                              ILanguageService languageService,
                              ILocalizationService localizationService,
                              IManufacturerService manufacturerService,
                              IManufacturerTemplateService manufacturerTemplateService,
                              IPluginService pluginService,
                              IProductTemplateService productTemplateService,
                              ISpecificationAttributeService specificationAttributeService,
                              IShippingService shippingService,
                              IStateProvinceService stateProvinceService,
                              IStaticCacheManager staticCacheManager,
                              IStoreService storeService,
                              ITaxCategoryService taxCategoryService,
                              ITopicTemplateService topicTemplateService,
                              IVendorService vendorService)
 {
     _categoryService             = categoryService;
     _categoryTemplateService     = categoryTemplateService;
     _countryService              = countryService;
     _currencyService             = currencyService;
     _customerActivityService     = customerActivityService;
     _customerService             = customerService;
     _dateRangeService            = dateRangeService;
     _dateTimeHelper              = dateTimeHelper;
     _emailAccountService         = emailAccountService;
     _languageService             = languageService;
     _localizationService         = localizationService;
     _manufacturerService         = manufacturerService;
     _manufacturerTemplateService = manufacturerTemplateService;
     _pluginService                 = pluginService;
     _productTemplateService        = productTemplateService;
     _specificationAttributeService = specificationAttributeService;
     _shippingService               = shippingService;
     _stateProvinceService          = stateProvinceService;
     _staticCacheManager            = staticCacheManager;
     _storeService         = storeService;
     _taxCategoryService   = taxCategoryService;
     _topicTemplateService = topicTemplateService;
     _vendorService        = vendorService;
 }
        public new void SetUp()
        {
            _categoryService = MockRepository.GenerateMock<ICategoryService>();
            _manufacturerService = MockRepository.GenerateMock<IManufacturerService>();
            _productService = MockRepository.GenerateMock<IProductService>();
			_productTemplateService = MockRepository.GenerateMock<IProductTemplateService>();
            _pictureService = MockRepository.GenerateMock<IPictureService>();
            _newsLetterSubscriptionService = MockRepository.GenerateMock<INewsLetterSubscriptionService>();
            _languageService = MockRepository.GenerateMock<ILanguageService>();
			_mediaSettings = MockRepository.GenerateMock<MediaSettings>();
			_commonServices = MockRepository.GenerateMock<ICommonServices>();
            _storeMapping = MockRepository.GenerateMock<IStoreMappingService>();

            _exportManager = new ExportManager(_categoryService, _manufacturerService, _productService, _productTemplateService, _pictureService,
                _newsLetterSubscriptionService, _languageService, _mediaSettings, _commonServices, _storeMapping);
        }
Пример #21
0
 public CcPlugin(ISettingService settingService,
                 IProductAttributeService productAttributeService,
                 ISpecificationAttributeService specificationAttributeService,
                 IProductTemplateService productTemplateService,
                 IProductService productService,
                 IUrlRecordService urlRecordService,
                 CcDesignObjectContext ccDesignObjectContext,
                 IWebHelper webHelper)
 {
     _settingService                = settingService;
     _productAttributeService       = productAttributeService;
     _specificationAttributeService = specificationAttributeService;
     _productTemplateService        = productTemplateService;
     _productService                = productService;
     _urlRecordService              = urlRecordService;
     _ccDesignObjectContext         = ccDesignObjectContext;
     _webHelper = webHelper;
 }
Пример #22
0
        public VendorController(
            IProductService productService, 
            IProductTemplateService productTemplateService,
            IWorkContext workContext, 
            ITaxService taxService, 
            ICurrencyService currencyService,
            IPictureService pictureService, 
            ILocalizationService localizationService,
            IPriceCalculationService priceCalculationService, IPriceFormatter priceFormatter,
            IWebHelper webHelper, ISpecificationAttributeService specificationAttributeService,
            IGenericAttributeService genericAttributeService,
            IPermissionService permissionService, 
            ICustomerActivityService customerActivityService, 
            IAclService aclService,
            MediaSettings mediaSettings, CatalogSettings catalogSettings,
        
            ICacheManager cacheManager
            , IVendorService vendorService //add by hz
            , IVendorTemplateService vendorTemplateService //add by hz
            )
        {
            this._productService = productService;
            this._productTemplateService = productTemplateService;
            this._workContext = workContext;
            this._taxService = taxService;
            this._currencyService = currencyService;
            this._pictureService = pictureService;
            this._localizationService = localizationService;
            this._priceCalculationService = priceCalculationService;
            this._priceFormatter = priceFormatter;
            this._webHelper = webHelper;
            this._specificationAttributeService = specificationAttributeService;
            this._genericAttributeService = genericAttributeService;
            this._permissionService = permissionService;
            this._customerActivityService = customerActivityService;
            this._aclService = aclService;

            this._mediaSettings = mediaSettings;
            this._catalogSettings = catalogSettings;

            this._cacheManager = cacheManager;
            this._vendorService = vendorService; //add by hz
            this._vendorTemplateService = vendorTemplateService; // add by hz
        }
 public ProductModelFactory(
     ICategoryService categoryService,
     IProductService productService,
     IProductTemplateService productTemplateService,
     IWorkContext workContext,
     IStoreContext storeContext,
     IPictureService pictureService,
     ILocalizationService localizationService,
     IWebHelper webHelper,
     IDateTimeHelper dateTimeHelper,
     IProductTagService productTagService,
     IAclService aclService,
     IStoreMappingService storeMappingService,
     IPermissionService permissionService,
     IDownloadService downloadService,
     MediaSettings mediaSettings,
     CatalogSettings catalogSettings,
     CustomerSettings customerSettings,
     CaptchaSettings captchaSettings,
     SeoSettings seoSettings,
     ICacheManager cacheManager)
 {
     this._categoryService        = categoryService;
     this._productService         = productService;
     this._productTemplateService = productTemplateService;
     this._workContext            = workContext;
     this._storeContext           = storeContext;
     this._pictureService         = pictureService;
     this._localizationService    = localizationService;
     this._webHelper           = webHelper;
     this._dateTimeHelper      = dateTimeHelper;
     this._productTagService   = productTagService;
     this._aclService          = aclService;
     this._storeMappingService = storeMappingService;
     this._permissionService   = permissionService;
     this._downloadService     = downloadService;
     this._mediaSettings       = mediaSettings;
     this._catalogSettings     = catalogSettings;
     this._customerSettings    = customerSettings;
     this._captchaSettings     = captchaSettings;
     this._seoSettings         = seoSettings;
     this._cacheManager        = cacheManager;
 }
Пример #24
0
 public ImportManager(IProductService productService,
     ICategoryService categoryService,
     IManufacturerService manufacturerService,
     IPictureService pictureService,
     IUrlRecordService urlRecordService,
     IStoreContext storeContext,
     INewsLetterSubscriptionService newsLetterSubscriptionService,
     ICountryService countryService,
     IStateProvinceService stateProvinceService,
     IEncryptionService encryptionService,
     IDataProvider dataProvider,
     MediaSettings mediaSettings,
     IVendorService vendorService,
     IProductTemplateService productTemplateService,
     IShippingService shippingService,
     ITaxCategoryService taxCategoryService,
     IMeasureService measureService,
     IProductAttributeService productAttributeService,
     CatalogSettings catalogSettings)
 {
     this._productService = productService;
     this._categoryService = categoryService;
     this._manufacturerService = manufacturerService;
     this._pictureService = pictureService;
     this._urlRecordService = urlRecordService;
     this._storeContext = storeContext;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._countryService = countryService;
     this._stateProvinceService = stateProvinceService;
     this._encryptionService = encryptionService;
     this._dataProvider = dataProvider;
     this._mediaSettings = mediaSettings;
     this._vendorService = vendorService;
     this._productTemplateService = productTemplateService;
     this._shippingService = shippingService;
     this._taxCategoryService = taxCategoryService;
     this._measureService = measureService;
     this._productAttributeService = productAttributeService;
     this._catalogSettings = catalogSettings;
 }
Пример #25
0
 public ExternalIntegrationController(IProductService productService,
                                      IProductTemplateService productTemplateService,
                                      ICategoryService categoryService, IManufacturerService manufacturerService,
                                      IWorkContext workContext, ILanguageService languageService,
                                      ILocalizationService localizationService, ILocalizedEntityService localizedEntityService,
                                      ISpecificationAttributeService specificationAttributeService, IPictureService pictureService,
                                      ITaxCategoryService taxCategoryService, IProductTagService productTagService,
                                      ICopyProductService copyProductService, IPdfService pdfService,
                                      IExportManager exportManager, IImportManager importManager,
                                      ICustomerActivityService customerActivityService,
                                      IPermissionService permissionService, AdminAreaSettings adminAreaSettings, ICurrencyService currencyService,
                                      CurrencySettings currencySettings, IMessageTemplateService messageTemplateService,
                                      INebimIntegrationService nebimIntegrationService, INebimIntegrationImportService nebimIntegrationImportService, IOrderService orderService)
 {
     this._productService                = productService;
     this._productTemplateService        = productTemplateService;
     this._categoryService               = categoryService;
     this._manufacturerService           = manufacturerService;
     this._workContext                   = workContext;
     this._languageService               = languageService;
     this._localizationService           = localizationService;
     this._localizedEntityService        = localizedEntityService;
     this._specificationAttributeService = specificationAttributeService;
     this._pictureService                = pictureService;
     this._taxCategoryService            = taxCategoryService;
     this._productTagService             = productTagService;
     this._copyProductService            = copyProductService;
     this._pdfService                    = pdfService;
     this._exportManager                 = exportManager;
     this._importManager                 = importManager;
     this._customerActivityService       = customerActivityService;
     this._permissionService             = permissionService;
     this._adminAreaSettings             = adminAreaSettings;
     this._currencyService               = currencyService;
     this._currencySettings              = currencySettings;
     this._messageTemplateService        = messageTemplateService;
     this._nebimIntegrationService       = nebimIntegrationService;
     this._nebimIntegrationImportService = nebimIntegrationImportService;
     this._orderService                  = orderService;
 }
Пример #26
0
        public ExportManager(ICategoryService categoryService,
            IManufacturerService manufacturerService,
            IProductService productService,
			IProductTemplateService productTemplateService,
            IPictureService pictureService,
            INewsLetterSubscriptionService newsLetterSubscriptionService,
            ILanguageService languageService,
			MediaSettings mediaSettings,
			ICommonServices commonServices)
        {
            this._categoryService = categoryService;
            this._manufacturerService = manufacturerService;
            this._productService = productService;
			this._productTemplateService = productTemplateService;
            this._pictureService = pictureService;
            this._newsLetterSubscriptionService = newsLetterSubscriptionService;
            this._languageService = languageService;
			this._mediaSettings = mediaSettings;
			this._commonServices = commonServices;

			Logger = NullLogger.Instance;
        }
Пример #27
0
 public ProductModelFactory(
     IAclSupportedModelFactory aclSupportedModelFactory,
     IBaseAdminModelFactory baseAdminModelFactory,
     ICategoryService categoryService,
     ICustomerService customerService,
     IDateTimeHelper dateTimeHelper,
     ILocalizationService localizationService,
     ILocalizedModelFactory localizedModelFactory,
     IPictureService pictureService,
     IProductService productService,
     IProductTagService productTagService,
     IProductTemplateService productTemplateService,
     ISettingModelFactory settingModelFactory,
     IStaticCacheManager cacheManager,
     IStoreMappingSupportedModelFactory storeMappingSupportedModelFactory,
     IStoreService storeService,
     IUrlRecordService urlRecordService,
     IWorkContext workContext,
     VendorSettings vendorSettings)
 {
     this._aclSupportedModelFactory          = aclSupportedModelFactory;
     this._baseAdminModelFactory             = baseAdminModelFactory;
     this._categoryService                   = categoryService;
     this._customerService                   = customerService;
     this._dateTimeHelper                    = dateTimeHelper;
     this._localizationService               = localizationService;
     this._localizedModelFactory             = localizedModelFactory;
     this._pictureService                    = pictureService;
     this._productService                    = productService;
     this._productTagService                 = productTagService;
     this._productTemplateService            = productTemplateService;
     this._settingModelFactory               = settingModelFactory;
     this._cacheManager                      = cacheManager;
     this._storeMappingSupportedModelFactory = storeMappingSupportedModelFactory;
     this._storeService                      = storeService;
     this._urlRecordService                  = urlRecordService;
     this._workContext    = workContext;
     this._vendorSettings = vendorSettings;
 }
Пример #28
0
        public ProductImporter(
            IRepository <ProductPicture> productPictureRepository,
            IRepository <ProductManufacturer> productManufacturerRepository,
            IRepository <ProductCategory> productCategoryRepository,
            IRepository <UrlRecord> urlRecordRepository,
            IRepository <Product> productRepository,
            ICommonServices services,
            ILocalizedEntityService localizedEntityService,
            IPictureService pictureService,
            IManufacturerService manufacturerService,
            ICategoryService categoryService,
            IProductService productService,
            IUrlRecordService urlRecordService,
            IProductTemplateService productTemplateService,
            IStoreMappingService storeMappingService,
            FileDownloadManager fileDownloadManager,
            SeoSettings seoSettings,
            DataExchangeSettings dataExchangeSettings)
        {
            _productPictureRepository      = productPictureRepository;
            _productManufacturerRepository = productManufacturerRepository;
            _productCategoryRepository     = productCategoryRepository;
            _urlRecordRepository           = urlRecordRepository;
            _productRepository             = productRepository;
            _services = services;
            _localizedEntityService = localizedEntityService;
            _pictureService         = pictureService;
            _manufacturerService    = manufacturerService;
            _categoryService        = categoryService;
            _productService         = productService;
            _urlRecordService       = urlRecordService;
            _productTemplateService = productTemplateService;
            _storeMappingService    = storeMappingService;
            _fileDownloadManager    = fileDownloadManager;

            _seoSettings          = seoSettings;
            _dataExchangeSettings = dataExchangeSettings;
        }
Пример #29
0
 public ExportManager(ICategoryService categoryService,
                      IManufacturerService manufacturerService,
                      ICustomerService customerService,
                      IProductAttributeService productAttributeService,
                      IPictureService pictureService,
                      //INewsLetterSubscriptionService newsLetterSubscriptionService,
                      IStoreService storeService,
                      IWorkContext workContext,
                      ProductEditorSettings productEditorSettings,
                      IVendorService vendorService,
                      IProductTemplateService productTemplateService,
                      //IDateRangeService dateRangeService,
                      //ITaxCategoryService taxCategoryService,
                      //IMeasureService measureService,
                      IGenericAttributeService genericAttributeService,
                      //ICustomerAttributeFormatter customerAttributeFormatter,
                      ISettingService settingService)
 {
     this._categoryService         = categoryService;
     this._manufacturerService     = manufacturerService;
     this._customerService         = customerService;
     this._productAttributeService = productAttributeService;
     this._pictureService          = pictureService;
     //this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._storeService           = storeService;
     this._workContext            = workContext;
     this._productEditorSettings  = productEditorSettings;
     this._vendorService          = vendorService;
     this._productTemplateService = productTemplateService;
     //this._dateRangeService = dateRangeService;
     //this._taxCategoryService = taxCategoryService;
     //this._measureService = measureService;
     this._settingService          = settingService;
     this._genericAttributeService = genericAttributeService;
     //this._customerAttributeFormatter = customerAttributeFormatter;
     this._catalogSettings = _settingService.LoadSetting <CatalogSettings>();
     this._orderSettings   = _settingService.LoadSetting <OrderSettings>();
 }
Пример #30
0
        public new void SetUp()
        {
            _storeService    = MockRepository.GenerateMock <IStoreService>();
            _categoryService = MockRepository.GenerateMock <ICategoryService>();
            _customerService = MockRepository.GenerateMock <ICustomerService>();
            _pictureService  = MockRepository.GenerateMock <IPictureService>();
            _newsLetterSubscriptionService = MockRepository.GenerateMock <INewsLetterSubscriptionService>();
            _productEditorSettings         = new ProductEditorSettings();
            _workContext                = MockRepository.GenerateMock <IWorkContext>();
            _productTemplateService     = MockRepository.GenerateMock <IProductTemplateService>();
            _catalogSettings            = new CatalogSettings();
            _genericAttributeService    = MockRepository.GenerateMock <IGenericAttributeService>();
            _customerAttributeFormatter = MockRepository.GenerateMock <ICustomerAttributeFormatter>();


            _exportManager = new ExportManager(_categoryService,
                                               _customerService,
                                               _pictureService, _newsLetterSubscriptionService,
                                               _storeService, _workContext, _productEditorSettings,
                                               _productTemplateService,
                                               _catalogSettings,
                                               _genericAttributeService, _customerAttributeFormatter);
        }
Пример #31
0
        public new void SetUp()
        {
            _storeService = MockRepository.GenerateMock<IStoreService>();
            _categoryService = MockRepository.GenerateMock<ICategoryService>();
            _manufacturerService = MockRepository.GenerateMock<IManufacturerService>();
            _productAttributeService = MockRepository.GenerateMock<IProductAttributeService>();
            _pictureService = MockRepository.GenerateMock<IPictureService>();
            _newsLetterSubscriptionService = MockRepository.GenerateMock<INewsLetterSubscriptionService>();
            _productEditorSettings = new ProductEditorSettings();
            _workContext = MockRepository.GenerateMock<IWorkContext>();
            _vendorService = MockRepository.GenerateMock<IVendorService>();
            _productTemplateService = MockRepository.GenerateMock<IProductTemplateService>();
            _shippingService = MockRepository.GenerateMock<IShippingService>();
            _taxCategoryService = MockRepository.GenerateMock<ITaxCategoryService>();
            _measureService = MockRepository.GenerateMock<IMeasureService>();
            _catalogSettings=new CatalogSettings();

            _exportManager = new ExportManager(_categoryService,
                _manufacturerService, _productAttributeService, 
                _pictureService, _newsLetterSubscriptionService,
                _storeService, _workContext, _productEditorSettings, 
                _vendorService, _productTemplateService, _shippingService,
                _taxCategoryService, _measureService, _catalogSettings);
        }
Пример #32
0
        public new void SetUp()
        {
            _storeService                  = MockRepository.GenerateMock <IStoreService>();
            _categoryService               = MockRepository.GenerateMock <ICategoryService>();
            _manufacturerService           = MockRepository.GenerateMock <IManufacturerService>();
            _productAttributeService       = MockRepository.GenerateMock <IProductAttributeService>();
            _pictureService                = MockRepository.GenerateMock <IPictureService>();
            _newsLetterSubscriptionService = MockRepository.GenerateMock <INewsLetterSubscriptionService>();
            _productEditorSettings         = new ProductEditorSettings();
            _workContext            = MockRepository.GenerateMock <IWorkContext>();
            _vendorService          = MockRepository.GenerateMock <IVendorService>();
            _productTemplateService = MockRepository.GenerateMock <IProductTemplateService>();
            _shippingService        = MockRepository.GenerateMock <IShippingService>();
            _taxCategoryService     = MockRepository.GenerateMock <ITaxCategoryService>();
            _measureService         = MockRepository.GenerateMock <IMeasureService>();
            _catalogSettings        = new CatalogSettings();

            _exportManager = new ExportManager(_categoryService,
                                               _manufacturerService, _productAttributeService,
                                               _pictureService, _newsLetterSubscriptionService,
                                               _storeService, _workContext, _productEditorSettings,
                                               _vendorService, _productTemplateService, _shippingService,
                                               _taxCategoryService, _measureService, _catalogSettings);
        }
Пример #33
0
 public ImportManager(IProductService productService,
                      ICategoryService categoryService,
                      IPictureService pictureService,
                      IUrlRecordService urlRecordService,
                      IStoreContext storeContext,
                      INewsLetterSubscriptionService newsLetterSubscriptionService,
                      ICountryService countryService,
                      IStateProvinceService stateProvinceService,
                      IEncryptionService encryptionService,
                      IDataProvider dataProvider,
                      MediaSettings mediaSettings,
                      IProductTemplateService productTemplateService,
                      CatalogSettings catalogSettings,
                      IProductTagService productTagService,
                      IWorkContext workContext,
                      ILocalizationService localizationService,
                      ICustomerActivityService customerActivityService)
 {
     this._productService   = productService;
     this._categoryService  = categoryService;
     this._pictureService   = pictureService;
     this._urlRecordService = urlRecordService;
     this._storeContext     = storeContext;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._countryService          = countryService;
     this._stateProvinceService    = stateProvinceService;
     this._encryptionService       = encryptionService;
     this._dataProvider            = dataProvider;
     this._mediaSettings           = mediaSettings;
     this._productTemplateService  = productTemplateService;
     this._catalogSettings         = catalogSettings;
     this._productTagService       = productTagService;
     this._workContext             = workContext;
     this._localizationService     = localizationService;
     this._customerActivityService = customerActivityService;
 }
Пример #34
0
 public ExportManager(ICategoryService categoryService,
                      ICustomerService customerService,
                      IPictureService pictureService,
                      INewsLetterSubscriptionService newsLetterSubscriptionService,
                      IStoreService storeService,
                      IWorkContext workContext,
                      ProductEditorSettings productEditorSettings,
                      IProductTemplateService productTemplateService,
                      CatalogSettings catalogSettings,
                      IGenericAttributeService genericAttributeService,
                      ICustomerAttributeFormatter customerAttributeFormatter)
 {
     this._categoryService = categoryService;
     this._customerService = customerService;
     this._pictureService  = pictureService;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._storeService               = storeService;
     this._workContext                = workContext;
     this._productEditorSettings      = productEditorSettings;
     this._productTemplateService     = productTemplateService;
     this._catalogSettings            = catalogSettings;
     this._genericAttributeService    = genericAttributeService;
     this._customerAttributeFormatter = customerAttributeFormatter;
 }
Пример #35
0
 public CatalogueController(IProductService productService,
                            IPictureService pictureService,
                            IWorkContext workContext,
                            CatalogSettings catalogSettings,
                            IProductTemplateService productTemplateService,
                            IFavoritsService favoritsService,
                            ICacheManager cacheManager,
                            MediaSettings mediaSettings,
                            ILocalizationService localizationService,
                            ILanguageService languageService,
                            IProductPriceService productPriceService,
                            ICurrencyService currencyService,
                            ICategoryService categoryService,
                            IAclService aclService,
                            IDateTimeHelper dateTimeHelper,
                            IUrlRecordService urlRecordService,
                            ICategoryProductAttributeService categoryProductAttributeService)
 {
     this._pictureService                  = pictureService;
     this._productService                  = productService;
     this._workContext                     = workContext;
     this._catalogSettings                 = catalogSettings;
     this._productTemplateService          = productTemplateService;
     this._favoritsService                 = favoritsService;
     this._cacheManager                    = cacheManager;
     this._mediaSettings                   = mediaSettings;
     this._localizationService             = localizationService;
     this._productPriceService             = productPriceService;
     this._currencyService                 = currencyService;
     this._categoryService                 = categoryService;
     this._languageService                 = languageService;
     this._aclService                      = aclService;
     this._dateTimeHelper                  = dateTimeHelper;
     this._urlRecordService                = urlRecordService;
     this._categoryProductAttributeService = categoryProductAttributeService;
 }
Пример #36
0
        public ProductValidator(
            IEnumerable <IValidatorConsumer <ProductDto> > validators,
            ILocalizationService localizationService, IProductService productService, IProductTemplateService productTemplateService, IVendorService vendorService, CommonSettings commonSettings)
            : base(validators)
        {
            RuleFor(x => x.Name).NotEmpty().WithMessage(localizationService.GetResource("Api.Catalog.Product.Fields.Name.Required"));
            RuleFor(x => x.ProductType).IsInEnum().WithMessage(localizationService.GetResource("Api.Catalog.Product.Fields.ProductType.Required"));
            RuleFor(x => x.BackorderMode).IsInEnum().WithMessage(localizationService.GetResource("Api.Catalog.Product.Fields.BackorderMode.Required"));
            RuleFor(x => x.DownloadActivationType).IsInEnum().WithMessage(localizationService.GetResource("Api.Catalog.Product.Fields.DownloadActivationType.Required"));
            RuleFor(x => x.IntervalUnitType).IsInEnum().WithMessage(localizationService.GetResource("Api.Catalog.Product.Fields.IntervalUnitType.Required"));
            RuleFor(x => x.GiftCardType).IsInEnum().WithMessage(localizationService.GetResource("Api.Catalog.Product.Fields.GiftCardType.Required"));
            RuleFor(x => x.LowStockActivity).IsInEnum().WithMessage(localizationService.GetResource("Api.Catalog.Product.Fields.LowStockActivity.Required"));
            RuleFor(x => x.ManageInventoryMethod).IsInEnum().WithMessage(localizationService.GetResource("Api.Catalog.Product.Fields.ManageInventoryMethod.Required"));
            RuleFor(x => x.RecurringCyclePeriod).IsInEnum().WithMessage(localizationService.GetResource("Api.Catalog.Product.Fields.RecurringCyclePeriod.Required"));

            if (!commonSettings.AllowEditProductEndedAuction)
            {
                RuleFor(x => x.AuctionEnded && x.ProductType == ProductType.Auction).Equal(false).WithMessage(localizationService.GetResource("Api.Catalog.Products.Cannoteditauction"));
            }

            RuleFor(x => x.ProductType == ProductType.Auction && !x.AvailableEndDateTimeUtc.HasValue).Equal(false).WithMessage(localizationService.GetResource("Api.Catalog.Products.Fields.AvailableEndDateTime.Required"));

            RuleFor(x => x).MustAsync(async(x, y, context) =>
            {
                if (!string.IsNullOrEmpty(x.ParentGroupedProductId))
                {
                    var product = await productService.GetProductById(x.ParentGroupedProductId);
                    if (product == null)
                    {
                        return(false);
                    }
                }
                return(true);
            }).WithMessage(localizationService.GetResource("Api.Catalog.Product.Fields.ParentGroupedProductId.NotExists"));

            RuleFor(x => x).MustAsync(async(x, y, context) =>
            {
                if (!string.IsNullOrEmpty(x.ProductTemplateId))
                {
                    var template = await productTemplateService.GetProductTemplateById(x.ProductTemplateId);
                    if (template == null)
                    {
                        return(false);
                    }
                }
                return(true);
            }).WithMessage(localizationService.GetResource("Api.Catalog.Product.Fields.ProductTemplateId.NotExists"));

            RuleFor(x => x).MustAsync(async(x, y, context) =>
            {
                if (!string.IsNullOrEmpty(x.VendorId))
                {
                    var vendor = await vendorService.GetVendorById(x.VendorId);
                    if (vendor == null)
                    {
                        return(false);
                    }
                }
                return(true);
            }).WithMessage(localizationService.GetResource("Api.Catalog.Product.Fields.VendorId.NotExists"));


            RuleFor(x => x).MustAsync(async(x, y, context) =>
            {
                if (!string.IsNullOrEmpty(x.Id))
                {
                    var product = await productService.GetProductById(x.Id);
                    if (product == null)
                    {
                        return(false);
                    }
                }
                return(true);
            }).WithMessage(localizationService.GetResource("Api.Catalog.Product.Fields.Id.NotExists"));
        }
        public CatalogController(ICommonServices services,
			ICategoryService categoryService,
            IManufacturerService manufacturerService, IProductService productService,
            IProductTemplateService productTemplateService,
            ICategoryTemplateService categoryTemplateService,
            IManufacturerTemplateService manufacturerTemplateService,
            IProductAttributeService productAttributeService, IProductAttributeParser productAttributeParser,
			IProductAttributeFormatter productAttributeFormatter,
			ITaxService taxService, ICurrencyService currencyService,
            IPictureService pictureService,
            IPriceCalculationService priceCalculationService, IPriceFormatter priceFormatter,
            ISpecificationAttributeService specificationAttributeService,
            ICustomerContentService customerContentService, IDateTimeHelper dateTimeHelper,
            IShoppingCartService shoppingCartService,
            IRecentlyViewedProductsService recentlyViewedProductsService, ICompareProductsService compareProductsService,
            IWorkflowMessageService workflowMessageService, IProductTagService productTagService,
            IOrderReportService orderReportService, IGenericAttributeService genericAttributeService,
            IBackInStockSubscriptionService backInStockSubscriptionService, IAclService aclService,
			IStoreMappingService storeMappingService,
            IPermissionService permissionService, IDownloadService downloadService,
            MediaSettings mediaSettings, CatalogSettings catalogSettings,
            ShoppingCartSettings shoppingCartSettings,
            LocalizationSettings localizationSettings, CustomerSettings customerSettings,
			CurrencySettings currencySettings,
            CaptchaSettings captchaSettings,
            /* codehint: sm-add */
            IMeasureService measureService, MeasureSettings measureSettings, TaxSettings taxSettings, IFilterService filterService,
            IDeliveryTimeService deliveryTimeService, ISettingService settingService,
			ICustomerActivityService customerActivityService
            )
        {
			this._services = services;
			this._categoryService = categoryService;
            this._manufacturerService = manufacturerService;
            this._productService = productService;
            this._productTemplateService = productTemplateService;
            this._categoryTemplateService = categoryTemplateService;
            this._manufacturerTemplateService = manufacturerTemplateService;
            this._productAttributeService = productAttributeService;
            this._productAttributeParser = productAttributeParser;
			this._productAttributeFormatter = productAttributeFormatter;
            this._workContext = _services.WorkContext;
			this._storeContext = _services.StoreContext;
            this._taxService = taxService;
            this._currencyService = currencyService;
            this._pictureService = pictureService;
            this._localizationService = _services.Localization;
            this._priceCalculationService = priceCalculationService;
            this._priceFormatter = priceFormatter;
            this._webHelper = _services.WebHelper;
            this._specificationAttributeService = specificationAttributeService;
            this._customerContentService = customerContentService;
            this._dateTimeHelper = dateTimeHelper;
            this._shoppingCartService = shoppingCartService;
            this._recentlyViewedProductsService = recentlyViewedProductsService;
            this._compareProductsService = compareProductsService;
            this._workflowMessageService = workflowMessageService;
            this._productTagService = productTagService;
            this._orderReportService = orderReportService;
            this._genericAttributeService = genericAttributeService;
            this._backInStockSubscriptionService = backInStockSubscriptionService;
            this._aclService = aclService;
			this._storeMappingService = storeMappingService;
            this._permissionService = permissionService;
            this._downloadService = downloadService;
			this._customerActivityService = customerActivityService;

            //codehint: sm-edit begin
            this._measureService = measureService;
            this._measureSettings = measureSettings;
            this._taxSettings = taxSettings;
            this._filterService = filterService;
            this._deliveryTimeService = deliveryTimeService;
            this._dbContext = _services.DbContext;
            this._settingService = settingService;
            this._eventPublisher = _services.EventPublisher;
            //codehint: sm-edit end

            this._mediaSettings = mediaSettings;
            this._catalogSettings = catalogSettings;
            this._shoppingCartSettings = shoppingCartSettings;
            this._localizationSettings = localizationSettings;
            this._customerSettings = customerSettings;
            this._captchaSettings = captchaSettings;
			this._currencySettings = currencySettings;
            this._cacheManager = _services.Cache;

			T = NullLocalizer.Instance;
        }
        public new void SetUp()
        {
            _pictureService                = MockRepository.GenerateMock <IPictureService>();
            _authenticationService         = MockRepository.GenerateMock <IAuthenticationService>();
            _localizationService           = MockRepository.GenerateMock <ILocalizationService>();
            _workContext                   = MockRepository.GenerateMock <IWorkContext>();
            _vendorService                 = MockRepository.GenerateMock <IVendorService>();
            _productTemplateService        = MockRepository.GenerateMock <IProductTemplateService>();
            _dateRangeService              = MockRepository.GenerateMock <IDateRangeService>();
            _genericAttributeService       = MockRepository.GenerateMock <IGenericAttributeService>();
            _storeService                  = MockRepository.GenerateMock <IStoreService>();
            _productAttributeService       = MockRepository.GenerateMock <IProductAttributeService>();
            _taxCategoryService            = MockRepository.GenerateMock <ITaxCategoryService>();
            _measureService                = MockRepository.GenerateMock <IMeasureService>();
            _catalogSettings               = new CatalogSettings();
            _specificationAttributeService = MockRepository.GenerateMock <ISpecificationAttributeService>();
            _orderSettings                 = new OrderSettings();
            _categoryService               = MockRepository.GenerateMock <ICategoryService>();
            _manufacturerService           = MockRepository.GenerateMock <IManufacturerService>();
            _customerService               = MockRepository.GenerateMock <ICustomerService>();
            _newsLetterSubscriptionService = MockRepository.GenerateMock <INewsLetterSubscriptionService>();
            _productEditorSettings         = new ProductEditorSettings();
            _customerAttributeFormatter    = MockRepository.GenerateMock <ICustomerAttributeFormatter>();

            var httpContextAccessor = MockRepository.GenerateMock <IHttpContextAccessor>();
            var nopEngine           = MockRepository.GenerateMock <NopEngine>();
            var serviceProvider     = MockRepository.GenerateMock <IServiceProvider>();
            var urlRecordService    = MockRepository.GenerateMock <IUrlRecordService>();
            var picture             = new Picture
            {
                Id          = 1,
                SeoFilename = "picture"
            };

            _genericAttributeService.Expect(p => p.GetAttributesForEntity(1, "Customer"))
            .Return(new List <GenericAttribute>
            {
                new GenericAttribute
                {
                    EntityId = 1,
                    Key      = "manufacturer-advanced-mode",
                    KeyGroup = "Customer",
                    StoreId  = 0,
                    Value    = "true"
                }
            });
            _authenticationService.Expect(p => p.GetAuthenticatedCustomer()).Return(GetTestCustomer());
            _pictureService.Expect(p => p.GetPictureById(1)).Return(picture);
            _pictureService.Expect(p => p.GetThumbLocalPath(picture)).Return(@"c:\temp\picture.png");
            _pictureService.Expect(p => p.GetPicturesByProductId(1, 3)).Return(new List <Picture> {
                picture
            });
            _productTemplateService.Expect(p => p.GetAllProductTemplates()).Return(new List <ProductTemplate> {
                new ProductTemplate {
                    Id = 1
                }
            });
            _dateRangeService.Expect(d => d.GetAllDeliveryDates()).Return(new List <DeliveryDate> {
                new DeliveryDate {
                    Id = 1
                }
            });
            _dateRangeService.Expect(d => d.GetAllProductAvailabilityRanges()).Return(new List <ProductAvailabilityRange> {
                new ProductAvailabilityRange {
                    Id = 1
                }
            });
            _taxCategoryService.Expect(t => t.GetAllTaxCategories()).Return(new List <TaxCategory> {
                new TaxCategory()
            });
            _vendorService.Expect(v => v.GetAllVendors(showHidden: true)).Return(new PagedList <Vendor>(new List <Vendor> {
                new Vendor {
                    Id = 1
                }
            }, 0, 10));
            _measureService.Expect(m => m.GetAllMeasureWeights()).Return(new List <MeasureWeight> {
                new MeasureWeight()
            });
            _categoryService.Expect(c => c.GetProductCategoriesByProductId(1, true)).Return(new List <ProductCategory>());
            _manufacturerService.Expect(m => m.GetProductManufacturersByProductId(1, true)).Return(new List <ProductManufacturer>());

            nopEngine.Expect(x => x.ServiceProvider).Return(serviceProvider);
            serviceProvider.Expect(x => x.GetRequiredService(typeof(IGenericAttributeService))).Return(_genericAttributeService);
            serviceProvider.Expect(x => x.GetRequiredService(typeof(IUrlRecordService))).Return(urlRecordService);
            serviceProvider.Expect(x => x.GetRequiredService(typeof(ILocalizationService))).Return(_localizationService);
            serviceProvider.Expect(x => x.GetRequiredService(typeof(IWorkContext))).Return(_workContext);
            serviceProvider.Expect(x => x.GetRequiredService(typeof(IHttpContextAccessor))).Return(httpContextAccessor);

            EngineContext.Replace(nopEngine);
            _exportManager = new ExportManager(_categoryService, _manufacturerService, _customerService, _productAttributeService, _pictureService, _newsLetterSubscriptionService, _storeService, _workContext, _productEditorSettings, _vendorService, _productTemplateService, _dateRangeService, _taxCategoryService, _measureService, _catalogSettings, _genericAttributeService, _customerAttributeFormatter, _orderSettings, _specificationAttributeService, _localizedEntityService);
        }
        public CatalogHelper(
			ICommonServices services,
			ICategoryService categoryService,
			IManufacturerService manufacturerService,
			IProductService productService,
			IProductTemplateService productTemplateService,
			IProductAttributeService productAttributeService,
			IProductAttributeParser productAttributeParser,
			IProductAttributeFormatter productAttributeFormatter,
			ITaxService taxService,
			ICurrencyService currencyService,
			IPictureService pictureService,
			IPriceCalculationService priceCalculationService,
			IPriceFormatter priceFormatter,
			ISpecificationAttributeService specificationAttributeService,
			IDateTimeHelper dateTimeHelper,
			IBackInStockSubscriptionService backInStockSubscriptionService,
			IDownloadService downloadService,
			MediaSettings mediaSettings,
			CatalogSettings catalogSettings,
			CustomerSettings customerSettings,
			CaptchaSettings captchaSettings,
			IMeasureService measureService,
            IQuantityUnitService quantityUnitService,
			MeasureSettings measureSettings,
			TaxSettings taxSettings,
			IDeliveryTimeService deliveryTimeService,
			ISettingService settingService,
			Lazy<IMenuPublisher> _menuPublisher,
			Lazy<ITopicService> topicService,
			HttpRequestBase httpRequest,
			UrlHelper urlHelper)
        {
            this._services = services;
            this._categoryService = categoryService;
            this._manufacturerService = manufacturerService;
            this._productService = productService;
            this._productTemplateService = productTemplateService;
            this._productAttributeService = productAttributeService;
            this._productAttributeParser = productAttributeParser;
            this._productAttributeFormatter = productAttributeFormatter;
            this._taxService = taxService;
            this._currencyService = currencyService;
            this._pictureService = pictureService;
            this._localizationService = _services.Localization;
            this._priceCalculationService = priceCalculationService;
            this._priceFormatter = priceFormatter;
            this._specificationAttributeService = specificationAttributeService;
            this._dateTimeHelper = dateTimeHelper;
            this._backInStockSubscriptionService = backInStockSubscriptionService;
            this._downloadService = downloadService;
            this._measureService = measureService;
            this._quantityUnitService = quantityUnitService;
            this._measureSettings = measureSettings;
            this._taxSettings = taxSettings;
            this._deliveryTimeService = deliveryTimeService;
            this._settingService = settingService;
            this._mediaSettings = mediaSettings;
            this._catalogSettings = catalogSettings;
            this._customerSettings = customerSettings;
            this._captchaSettings = captchaSettings;
            this._menuPublisher = _menuPublisher;
            this._topicService = topicService;
            this._httpRequest = httpRequest;
            this._urlHelper = urlHelper;

            T = NullLocalizer.Instance;
        }
Пример #40
0
 public ProductController(ICategoryService categoryService,
     IManufacturerService manufacturerService,
     IProductService productService,
     IVendorService vendorService,
     IProductTemplateService productTemplateService,
     IProductAttributeService productAttributeService,
     IWorkContext workContext,
     IStoreContext storeContext,
     ITaxService taxService,
     ICurrencyService currencyService,
     IPictureService pictureService,
     ILocalizationService localizationService,
     IMeasureService measureService,
     IPriceCalculationService priceCalculationService,
     IPriceFormatter priceFormatter,
     IWebHelper webHelper,
     ISpecificationAttributeService specificationAttributeService,
     IDateTimeHelper dateTimeHelper,
     IRecentlyViewedProductsService recentlyViewedProductsService,
     ICompareProductsService compareProductsService,
     IWorkflowMessageService workflowMessageService,
     IProductTagService productTagService,
     IOrderReportService orderReportService,
     IAclService aclService,
     IStoreMappingService storeMappingService,
     IPermissionService permissionService,
     IDownloadService downloadService,
     ICustomerActivityService customerActivityService,
     IProductAttributeParser productAttributeParser,
     IShippingService shippingService,
     IEventPublisher eventPublisher,
     MediaSettings mediaSettings,
     CatalogSettings catalogSettings,
     VendorSettings vendorSettings,
     ShoppingCartSettings shoppingCartSettings,
     LocalizationSettings localizationSettings,
     CustomerSettings customerSettings,
     CaptchaSettings captchaSettings,
     SeoSettings seoSettings,
     ICacheManager cacheManager)
 {
     this._categoryService = categoryService;
     this._manufacturerService = manufacturerService;
     this._productService = productService;
     this._vendorService = vendorService;
     this._productTemplateService = productTemplateService;
     this._productAttributeService = productAttributeService;
     this._workContext = workContext;
     this._storeContext = storeContext;
     this._taxService = taxService;
     this._currencyService = currencyService;
     this._pictureService = pictureService;
     this._localizationService = localizationService;
     this._measureService = measureService;
     this._priceCalculationService = priceCalculationService;
     this._priceFormatter = priceFormatter;
     this._webHelper = webHelper;
     this._specificationAttributeService = specificationAttributeService;
     this._dateTimeHelper = dateTimeHelper;
     this._recentlyViewedProductsService = recentlyViewedProductsService;
     this._compareProductsService = compareProductsService;
     this._workflowMessageService = workflowMessageService;
     this._productTagService = productTagService;
     this._orderReportService = orderReportService;
     this._aclService = aclService;
     this._storeMappingService = storeMappingService;
     this._permissionService = permissionService;
     this._downloadService = downloadService;
     this._customerActivityService = customerActivityService;
     this._productAttributeParser = productAttributeParser;
     this._shippingService = shippingService;
     this._eventPublisher = eventPublisher;
     this._mediaSettings = mediaSettings;
     this._catalogSettings = catalogSettings;
     this._vendorSettings = vendorSettings;
     this._shoppingCartSettings = shoppingCartSettings;
     this._localizationSettings = localizationSettings;
     this._customerSettings = customerSettings;
     this._captchaSettings = captchaSettings;
     this._seoSettings = seoSettings;
     this._cacheManager = cacheManager;
 }
Пример #41
0
 public GBSProductModelFactory(IPluginFinder pluginFinder,
                               IHttpContextAccessor httpContextAccessor,
                               ISpecificationAttributeService specificationAttributeService,
                               ICategoryService categoryService,
                               IManufacturerService manufacturerService,
                               IProductService productService,
                               IVendorService vendorService,
                               IProductTemplateService productTemplateService,
                               IProductAttributeService productAttributeService,
                               IWorkContext workContext,
                               IStoreContext storeContext,
                               ITaxService taxService,
                               ICurrencyService currencyService,
                               IPictureService pictureService,
                               ILocalizationService localizationService,
                               IMeasureService measureService,
                               IPriceCalculationService priceCalculationService,
                               IPriceFormatter priceFormatter,
                               IWebHelper webHelper,
                               IDateTimeHelper dateTimeHelper,
                               IProductTagService productTagService,
                               IAclService aclService,
                               IStoreMappingService storeMappingService,
                               IPermissionService permissionService,
                               IDownloadService downloadService,
                               IProductAttributeParser productAttributeParser,
                               IDateRangeService dateRangeService,
                               MediaSettings mediaSettings,
                               CatalogSettings catalogSettings,
                               VendorSettings vendorSettings,
                               CustomerSettings customerSettings,
                               CaptchaSettings captchaSettings,
                               OrderSettings orderSettings,
                               SeoSettings seoSettings,
                               IStaticCacheManager cacheManager) :
     base(specificationAttributeService,
          categoryService,
          manufacturerService,
          productService,
          vendorService,
          productTemplateService,
          productAttributeService,
          workContext,
          storeContext,
          taxService,
          currencyService,
          pictureService,
          localizationService,
          measureService,
          priceCalculationService,
          priceFormatter,
          webHelper,
          dateTimeHelper,
          productTagService,
          aclService,
          storeMappingService,
          permissionService,
          downloadService,
          productAttributeParser,
          dateRangeService,
          mediaSettings,
          catalogSettings,
          vendorSettings,
          customerSettings,
          captchaSettings,
          orderSettings,
          seoSettings,
          cacheManager)
 {
     _workContext         = workContext;
     _storeContext        = storeContext;
     _cacheManager        = cacheManager;
     _catalogSettings     = catalogSettings;
     _categoryService     = categoryService;
     _aclService          = aclService;
     _storeMappingService = storeMappingService;
     _pluginFinder        = pluginFinder;
     _httpContextAccessor = httpContextAccessor;
 }
Пример #42
0
        public InvoicesController(IOrderService orderService,
            IOrderReportService orderReportService,
            IOrderProcessingService orderProcessingService,
            IPriceCalculationService priceCalculationService,
            IDateTimeHelper dateTimeHelper,
            IPriceFormatter priceFormatter,
            IDiscountService discountService,
            ILocalizationService localizationService,
            IWorkContext workContext,
            ICurrencyService currencyService,
            IEncryptionService encryptionService,
            IPaymentService paymentService,
            IMeasureService measureService,
            IPdfService pdfService,
            IAddressService addressService,
            ICountryService countryService,
            IStateProvinceService stateProvinceService,
            Nop.Services.Catalog.IProductService productService,
            IExportManager exportManager,
            IPermissionService permissionService,
            IWorkflowMessageService workflowMessageService,
            ICategoryService categoryService,
            IManufacturerService manufacturerService,
            IProductAttributeService productAttributeService,
            IProductAttributeParser productAttributeParser,
            IProductAttributeFormatter productAttributeFormatter,
            IShoppingCartService shoppingCartService,
            IGiftCardService giftCardService,
            IDownloadService downloadService,
            IShipmentService shipmentService,
            IShippingService shippingService,
            IStoreService storeService,
            IVendorService vendorService,
            IAddressAttributeParser addressAttributeParser,
            IAddressAttributeService addressAttributeService,
            IAddressAttributeFormatter addressAttributeFormatter,
            IAffiliateService affiliateService,
            IPictureService pictureService,
            CurrencySettings currencySettings,
            TaxSettings taxSettings,
            MeasureSettings measureSettings,
            AddressSettings addressSettings,
            ShippingSettings shippingSettings,
            IInvoiceService invoiceService,
            IGenericAttributeService genericAttributeService,
            IProductTemplateService productTemplateService,
            IStoreContext storeContext,
            ISettingService settingService,
            IGroupDealService groupDealService)
        {
            this._orderService = orderService;
            this._orderReportService = orderReportService;
            this._orderProcessingService = orderProcessingService;
            this._priceCalculationService = priceCalculationService;
            this._dateTimeHelper = dateTimeHelper;
            this._priceFormatter = priceFormatter;
            this._discountService = discountService;
            this._localizationService = localizationService;
            this._workContext = workContext;
            this._currencyService = currencyService;
            this._encryptionService = encryptionService;
            this._paymentService = paymentService;
            this._measureService = measureService;
            this._pdfService = pdfService;
            this._addressService = addressService;
            this._countryService = countryService;
            this._stateProvinceService = stateProvinceService;
            this._productService = productService;
            this._exportManager = exportManager;
            this._permissionService = permissionService;
            this._workflowMessageService = workflowMessageService;
            this._categoryService = categoryService;
            this._manufacturerService = manufacturerService;
            this._productAttributeService = productAttributeService;
            this._productAttributeParser = productAttributeParser;
            this._productAttributeFormatter = productAttributeFormatter;
            this._shoppingCartService = shoppingCartService;
            this._giftCardService = giftCardService;
            this._downloadService = downloadService;
            this._shipmentService = shipmentService;
            this._shippingService = shippingService;
            this._storeService = storeService;
            this._vendorService = vendorService;
            this._addressAttributeParser = addressAttributeParser;
            this._addressAttributeService = addressAttributeService;
            this._addressAttributeFormatter = addressAttributeFormatter;
            this._affiliateService = affiliateService;
            this._pictureService = pictureService;

            this._currencySettings = currencySettings;
            this._taxSettings = taxSettings;
            this._measureSettings = measureSettings;
            this._addressSettings = addressSettings;
            this._shippingSettings = shippingSettings;
            this._invoiceService = invoiceService;
            this._genericAttributeService = genericAttributeService;
            this._productTemplateService = productTemplateService;
            this._storeContext = storeContext;
            this._settingService = settingService;
            this._groupDealService = groupDealService;
        }
 public ImportManager(
     CatalogSettings catalogSettings,
     ICategoryService categoryService,
     ICountryService countryService,
     ICustomerActivityService customerActivityService,
     IDataProvider dataProvider,
     IDateRangeService dateRangeService,
     IEncryptionService encryptionService,
     IHttpClientFactory httpClientFactory,
     ILocalizationService localizationService,
     ILogger logger,
     IManufacturerService manufacturerService,
     IMeasureService measureService,
     INewsLetterSubscriptionService newsLetterSubscriptionService,
     INopFileProvider fileProvider,
     IPictureService pictureService,
     IProductAttributeService productAttributeService,
     IProductService productService,
     IProductTagService productTagService,
     IProductTemplateService productTemplateService,
     IServiceScopeFactory serviceScopeFactory,
     IShippingService shippingService,
     ISpecificationAttributeService specificationAttributeService,
     IStateProvinceService stateProvinceService,
     IStoreContext storeContext,
     IStoreMappingService storeMappingService,
     IStoreService storeService,
     ITaxCategoryService taxCategoryService,
     IUrlRecordService urlRecordService,
     IVendorService vendorService,
     IWorkContext workContext,
     MediaSettings mediaSettings,
     VendorSettings vendorSettings,
     ICustomerService customerService) : this(
         catalogSettings,
         categoryService,
         countryService,
         customerActivityService,
         dataProvider,
         dateRangeService,
         encryptionService,
         httpClientFactory,
         localizationService,
         logger,
         manufacturerService,
         measureService,
         newsLetterSubscriptionService,
         fileProvider,
         pictureService,
         productAttributeService,
         productService,
         productTagService,
         productTemplateService,
         serviceScopeFactory,
         shippingService,
         specificationAttributeService,
         stateProvinceService,
         storeContext,
         storeMappingService,
         storeService,
         taxCategoryService,
         urlRecordService,
         vendorService,
         workContext,
         mediaSettings,
         vendorSettings)
 {
     _customerService = customerService;
 }
        //I think this is the method that uses dependancy injection to create the repos - as opposed to manual
        //see:http://alexwolfthoughts.com/creating-a-generic-repository-with-entity-framework-and-mvc
        public AUPublicController(IRepository<AUConsignorRecord> consignorRepo,
                                        IRepository<AUConsignmentRecord> consignmentRepo,
                                        IRepository<AUConsignorConsignmentRecord> consignorconsignmentRepo,
                                        IRepository<AUConsignorList> consignorlistRepo,
                                        IRepository<AUSaleRecord> saleRepo,
                                        IRepository<AUSessionRecord> sessionRepo,
                                        IRepository<AUIncrementRecord> incrementRepo,
                                        IRepository<AUAddressRecord> addressRepo,
                                        IRepository<AUCombAddress> combAddressRepo,
                                        IRepository<AULotList> lotlistRepo,
                                        IRepository<AUFeesRecord> feesRepo,
                                        IRepository<AUBidHistoryRecord> bidhistoryRepo,

                                        ICacheManager cacheManager,
                                        IPictureService pictureService,
                                        IConsignmentService consignmentservice,
                                        ILotService lotService,
                                        IForumService forumservice,

                                        IConsignorService consignorservice,
                                        IDateTimeHelper dateTimeHelper,
                                        IAuthenticationService authenticationService,
                                        ILocalizationService localizationService,
                                        ICountryService countryService,
                                        IStateProvinceService stateProvinceService, 
                                        IWorkContext workContext,                                        
                                        ICollectibleImportService collectibleimportService, 
                                        //IRepository<AUCombConsignorConsignment> combinedRepo,
                                        ICategoryService categoryService,
                                        IStoreService storeService,
                                        IShippingService shippingService,
                                        IPermissionService permissionService,
                                        IEventPublisher eventPublisher,
                                        ISettingService settings,
                                        IProductService productService,
                                        IDbContext dbContext,
                                        IPhilatelicPdfService philatelicpdfService,
                                        ICollectibleExportService collectibleexportService,
                                        IAUSaleService ausaleService,
                                        IAclService aclService,
                                        IStoreMappingService storeMappingService,
                                        CatalogSettings catalogSettings,
                                        IWebHelper webHelper,
                                        IPriceFormatter priceFormatter,
                                        ICurrencyService currencyService,
                                        IStoreContext storeContext,
                                        MediaSettings mediaSettings,
                                        IPriceCalculationService priceCalculationService,
                                        ISpecificationAttributeService specificationAttributeService,
                                        ITaxService taxService,
                                        ICategoryTemplateService categoryTemplateService,
                                        ICustomerActivityService customerActivityService,
                                        ShoppingCartSettings shoppingCartSettings,
                                        IAUCatalogService AUcatalogService,     
                                        IForumService forumService,             
                                        ICustomerService customerService,      
                                        ForumSettings forumSettings,          
                                        ILogger logger,
                                        IRecentlyViewedProductsService recentlyViewedProductsService,
                                        SeoSettings seoSettings,
                                        IVendorService vendorService,
                                        VendorSettings vendorSettings,
                                        IProductTagService productTagService,
                                        IProductTemplateService productTemplateService,
                                        IProductAttributeParser productAttributeParser,
                                        IManufacturerService manufacturerService,
                                        IMeasureService measureService,
                                        IProductAttributeService productAttributeService,
                                        CustomerSettings customerSettings,
                                        IGenericAttributeService genericAttributeService,
                                        ISearchTermService searchTermService,
                                        IShoppingCartService shoppingCartService,
                                        IProductAttributeFormatter productAttributeFormatter)                         
        {
            _cacheManager = cacheManager;
            _pictureService = pictureService;
            _lotService = lotService;
            _forumservice = forumservice;

            _consignorRepo = consignorRepo;
            _consignmentRepo = consignmentRepo;
            _consignorconsignmentRepo = consignorconsignmentRepo;
            _consignorService = consignorservice;
            _consignmentService = consignmentservice;
            _consignorlistRepo = consignorlistRepo;
            _saleRepo = saleRepo;
            _sessionRepo = sessionRepo;
            _incrementRepo = incrementRepo;
            _addressRepo = addressRepo;
            _combAddressRepo = combAddressRepo;
            _lotlistRepo = lotlistRepo;
            _feesRepo = feesRepo;
            _bidhistoryRepo = bidhistoryRepo;
            _dateTimeHelper = dateTimeHelper;
            _authenticationService = authenticationService;
            _localizationService = localizationService;
            _countryService = countryService;
            _stateProvinceService = stateProvinceService;
            _workContext = workContext;
            _collectibleimportService = collectibleimportService;
            _categoryService = categoryService;
            _storeService = storeService;
            _shippingService = shippingService;
            _permissionService = permissionService;
            _eventPublisher = eventPublisher;
            _settings = settings;
            _productService = productService;
            _dbContext = dbContext;
            _philatelicpdfService = philatelicpdfService;
            _collectibleexportService = collectibleexportService;
            _ausaleService = ausaleService;
            _aclService = aclService;
            _storeMappingService = storeMappingService;
            _catalogSettings = catalogSettings;
            _webHelper = webHelper;
            _priceFormatter = priceFormatter;
            _currencyService = currencyService;
            _storeContext = storeContext;
            _mediaSettings = mediaSettings;
            _priceCalculationService = priceCalculationService;
            _specificationAttributeService = specificationAttributeService;
            _taxService = taxService;
            _categoryTemplateService = categoryTemplateService;
            _customerActivityService = customerActivityService;
            _shoppingCartSettings = shoppingCartSettings;
            _AUcatalogService = AUcatalogService;      
            _forumService = forumService;              
            _customerService = customerService;       
            _forumSettings = forumSettings;            
            _logger = logger;
            _recentlyViewedProductsService = recentlyViewedProductsService;          
            _seoSettings = seoSettings;
            _vendorService = vendorService;
            _vendorSettings = vendorSettings;
            _productTemplateService = productTemplateService;
            _productTagService = productTagService;
            _productAttributeParser = productAttributeParser;
            _manufacturerService = manufacturerService;
            _measureService = measureService;
            _productAttributeService = productAttributeService;
            _customerSettings = customerSettings;
            _genericAttributeService = genericAttributeService;
            _searchTermService = searchTermService;
            _shoppingCartService = shoppingCartService;
            _productAttributeFormatter = productAttributeFormatter;
        }
 public GroupDealsController(
     IProductService productService,
     IProductTemplateService productTemplateService,
     ICategoryService categoryService,
     IManufacturerService manufacturerService,
     ICustomerService customerService,
     IUrlRecordService urlRecordService,
     IWorkContext workContext,
     ILanguageService languageService,
     ILocalizationService localizationService,
     ILocalizedEntityService localizedEntityService,
     ISpecificationAttributeService specificationAttributeService,
     IPictureService pictureService,
     ITaxCategoryService taxCategoryService,
     IProductTagService productTagService,
     ICopyProductService copyProductService,
     IPdfService pdfService,
     IExportManager exportManager,
     IImportManager importManager,
     ICustomerActivityService customerActivityService,
     IPermissionService permissionService,
     IAclService aclService,
     IStoreService storeService,
     IOrderService orderService,
     IStoreMappingService storeMappingService,
     IVendorService vendorService,
     IShippingService shippingService,
     IShipmentService shipmentService,
     ICurrencyService currencyService,
     CurrencySettings currencySettings,
     IMeasureService measureService,
     MeasureSettings measureSettings,
     AdminAreaSettings adminAreaSettings,
     IDateTimeHelper dateTimeHelper,
     IDiscountService discountService,
     IProductAttributeService productAttributeService,
     IBackInStockSubscriptionService backInStockSubscriptionService,
     IShoppingCartService shoppingCartService,
     IProductAttributeFormatter productAttributeFormatter,
     IProductAttributeParser productAttributeParser,
     IDownloadService downloadService,
     IRepository<GroupDeal> groupDealRepo,
     IRepository<GroupdealPicture> groupdealPictureRepo,
     IGroupDealService groupdealService,
     IGenericAttributeService genericAttributeService)
     : base(productService,
     productTemplateService,
     categoryService,
     manufacturerService,
     customerService,
     urlRecordService,
     workContext,
     languageService,
     localizationService,
     localizedEntityService,
     specificationAttributeService,
     pictureService,
     taxCategoryService,
     productTagService,
     copyProductService,
     pdfService,
     exportManager,
     importManager,
     customerActivityService,
     permissionService,
     aclService,
     storeService,
     orderService,
     storeMappingService,
     vendorService,
     shippingService,
     shipmentService,
     currencyService,
     currencySettings,
     measureService,
     measureSettings,
     adminAreaSettings,
     dateTimeHelper,
     discountService,
     productAttributeService,
     backInStockSubscriptionService,
     shoppingCartService,
     productAttributeFormatter,
     productAttributeParser,
     downloadService,
     groupDealRepo,
     groupdealPictureRepo,
     groupdealService,
     genericAttributeService)
 { }
Пример #46
0
 public ProductController(IProductService productService, 
     IProductTemplateService productTemplateService,
     ICategoryService categoryService, 
     IManufacturerService manufacturerService,
     ICustomerService customerService,
     IUrlRecordService urlRecordService, 
     IWorkContext workContext, 
     ILanguageService languageService, 
     ILocalizationService localizationService, 
     ILocalizedEntityService localizedEntityService,
     ISpecificationAttributeService specificationAttributeService, 
     IPictureService pictureService,
     ITaxCategoryService taxCategoryService, 
     IProductTagService productTagService,
     ICopyProductService copyProductService, 
     IPdfService pdfService,
     IExportManager exportManager, 
     IImportManager importManager,
     ICustomerActivityService customerActivityService,
     IPermissionService permissionService, 
     IAclService aclService,
     IStoreService storeService,
     IOrderService orderService,
     IStoreMappingService storeMappingService,
      IVendorService vendorService,
     IShippingService shippingService,
     IShipmentService shipmentService,
     ICurrencyService currencyService, 
     CurrencySettings currencySettings,
     IMeasureService measureService,
     MeasureSettings measureSettings,
     AdminAreaSettings adminAreaSettings,
     IDateTimeHelper dateTimeHelper,
     IDiscountService discountService,
     IProductAttributeService productAttributeService,
     IBackInStockSubscriptionService backInStockSubscriptionService,
     IShoppingCartService shoppingCartService,
     IProductAttributeFormatter productAttributeFormatter,
     IProductAttributeParser productAttributeParser,
     IDownloadService downloadService)
 {
     this._productService = productService;
     this._productTemplateService = productTemplateService;
     this._categoryService = categoryService;
     this._manufacturerService = manufacturerService;
     this._customerService = customerService;
     this._urlRecordService = urlRecordService;
     this._workContext = workContext;
     this._languageService = languageService;
     this._localizationService = localizationService;
     this._localizedEntityService = localizedEntityService;
     this._specificationAttributeService = specificationAttributeService;
     this._pictureService = pictureService;
     this._taxCategoryService = taxCategoryService;
     this._productTagService = productTagService;
     this._copyProductService = copyProductService;
     this._pdfService = pdfService;
     this._exportManager = exportManager;
     this._importManager = importManager;
     this._customerActivityService = customerActivityService;
     this._permissionService = permissionService;
     this._aclService = aclService;
     this._storeService = storeService;
     this._orderService = orderService;
     this._storeMappingService = storeMappingService;
     this._vendorService = vendorService;
     this._shippingService = shippingService;
     this._shipmentService = shipmentService;
     this._currencyService = currencyService;
     this._currencySettings = currencySettings;
     this._measureService = measureService;
     this._measureSettings = measureSettings;
     this._adminAreaSettings = adminAreaSettings;
     this._dateTimeHelper = dateTimeHelper;
     this._discountService = discountService;
     this._productAttributeService = productAttributeService;
     this._backInStockSubscriptionService = backInStockSubscriptionService;
     this._shoppingCartService = shoppingCartService;
     this._productAttributeFormatter = productAttributeFormatter;
     this._productAttributeParser = productAttributeParser;
     this._downloadService = downloadService;
 }
Пример #47
0
 public GetProductTemplateViewPathHandler(ICacheManager cacheManager, IProductTemplateService productTemplateService)
 {
     _cacheManager           = cacheManager;
     _productTemplateService = productTemplateService;
 }
Пример #48
0
        public MVPController(ICategoryService categoryService,
                             IManufacturerService manufacturerService,
                             IProductService productService,
                             IVendorService vendorService,
                             IProductTemplateService productTemplateService,
                             IProductAttributeService productAttributeService,
                             IWorkContext workContext,
                             IStoreContext storeContext,
                             ITaxService taxService,
                             ICurrencyService currencyService,
                             IPictureService pictureService,
                             ILocalizationService localizationService,
                             IMeasureService measureService,
                             IPriceCalculationService priceCalculationService,
                             IPriceFormatter priceFormatter,
                             IWebHelper webHelper,
                             ISpecificationAttributeService specificationAttributeService,
                             IDateTimeHelper dateTimeHelper,
                             IRecentlyViewedProductsService recentlyViewedProductsService,
                             ICompareProductsService compareProductsService,
                             IWorkflowMessageService workflowMessageService,
                             IProductTagService productTagService,
                             IOrderReportService orderReportService,
                             IAclService aclService,
                             IStoreMappingService storeMappingService,
                             IPermissionService permissionService,
                             IDownloadService downloadService,
                             ICustomerActivityService customerActivityService,
                             IProductAttributeParser productAttributeParser,
                             IShippingService shippingService,
                             IEventPublisher eventPublisher,
                             MediaSettings mediaSettings,
                             CatalogSettings catalogSettings,
                             VendorSettings vendorSettings,
                             ShoppingCartSettings shoppingCartSettings,
                             LocalizationSettings localizationSettings,
                             CustomerSettings customerSettings,
                             CaptchaSettings captchaSettings,
                             SeoSettings seoSettings,
                             ICacheManager cacheManager,
                             IStoreService storeService,
                             ISettingService settingService,
                             IProductReportService productReportService,
                             IMVPService mvpService

                             )
        {
            this._categoryService         = categoryService;
            this._manufacturerService     = manufacturerService;
            this._productService          = productService;
            this._vendorService           = vendorService;
            this._productTemplateService  = productTemplateService;
            this._productAttributeService = productAttributeService;
            this._workContext             = workContext;
            this._storeContext            = storeContext;
            this._taxService              = taxService;
            this._currencyService         = currencyService;
            this._pictureService          = pictureService;
            this._localizationService     = localizationService;
            this._measureService          = measureService;
            this._priceCalculationService = priceCalculationService;
            this._priceFormatter          = priceFormatter;
            this._webHelper = webHelper;
            this._specificationAttributeService = specificationAttributeService;
            this._dateTimeHelper = dateTimeHelper;
            this._recentlyViewedProductsService = recentlyViewedProductsService;
            this._compareProductsService        = compareProductsService;
            this._workflowMessageService        = workflowMessageService;
            this._productTagService             = productTagService;
            this._orderReportService            = orderReportService;
            this._aclService              = aclService;
            this._storeMappingService     = storeMappingService;
            this._permissionService       = permissionService;
            this._downloadService         = downloadService;
            this._customerActivityService = customerActivityService;
            this._productAttributeParser  = productAttributeParser;
            this._shippingService         = shippingService;
            this._eventPublisher          = eventPublisher;
            this._mediaSettings           = mediaSettings;
            this._catalogSettings         = catalogSettings;
            this._vendorSettings          = vendorSettings;
            this._shoppingCartSettings    = shoppingCartSettings;
            this._localizationSettings    = localizationSettings;
            this._customerSettings        = customerSettings;
            this._captchaSettings         = captchaSettings;
            this._seoSettings             = seoSettings;
            this._cacheManager            = cacheManager;
            this._storeService            = storeService;
            this._settingService          = settingService;
            this._productReportService    = productReportService;
            this._mvpService              = mvpService;
        }
 public ProductModelFactoryCustom(CaptchaSettings captchaSettings,
                                  CatalogSettings catalogSettings,
                                  CustomerSettings customerSettings,
                                  ICategoryService categoryService,
                                  ICurrencyService currencyService,
                                  ICustomerService customerService,
                                  IDateRangeService dateRangeService,
                                  IDateTimeHelper dateTimeHelper,
                                  IDownloadService downloadService,
                                  ILocalizationService localizationService,
                                  IManufacturerService manufacturerService,
                                  IPermissionService permissionService,
                                  IPictureService pictureService,
                                  IPriceCalculationService priceCalculationService,
                                  IPriceFormatter priceFormatter,
                                  IProductAttributeParser productAttributeParser,
                                  IProductAttributeService productAttributeService,
                                  IProductService productService,
                                  IProductTagService productTagService,
                                  IProductTemplateService productTemplateService,
                                  IReviewTypeService reviewTypeService,
                                  ISpecificationAttributeService specificationAttributeService,
                                  IStaticCacheManager cacheManager,
                                  IStoreContext storeContext,
                                  ITaxService taxService,
                                  IUrlRecordService urlRecordService,
                                  IVendorService vendorService,
                                  IWebHelper webHelper,
                                  IWorkContext workContext,
                                  MediaSettings mediaSettings,
                                  OrderSettings orderSettings,
                                  SeoSettings seoSettings,
                                  VendorSettings vendorSettings)
     : base(captchaSettings, catalogSettings, customerSettings, categoryService, currencyService, customerService, dateRangeService, dateTimeHelper,
            downloadService, localizationService, manufacturerService, permissionService, pictureService, priceCalculationService, priceFormatter,
            productAttributeParser, productAttributeService, productService, productTagService, productTemplateService, reviewTypeService, specificationAttributeService,
            cacheManager, storeContext, taxService, urlRecordService, vendorService, webHelper, workContext, mediaSettings, orderSettings, seoSettings, vendorSettings)
 {
     this._captchaSettings               = captchaSettings;
     this._catalogSettings               = catalogSettings;
     this._customerSettings              = customerSettings;
     this._categoryService               = categoryService;
     this._currencyService               = currencyService;
     this._customerService               = customerService;
     this._dateRangeService              = dateRangeService;
     this._dateTimeHelper                = dateTimeHelper;
     this._downloadService               = downloadService;
     this._localizationService           = localizationService;
     this._manufacturerService           = manufacturerService;
     this._permissionService             = permissionService;
     this._pictureService                = pictureService;
     this._priceCalculationService       = priceCalculationService;
     this._priceFormatter                = priceFormatter;
     this._productAttributeParser        = productAttributeParser;
     this._productAttributeService       = productAttributeService;
     this._productService                = productService;
     this._productTagService             = productTagService;
     this._productTemplateService        = productTemplateService;
     this._reviewTypeService             = reviewTypeService;
     this._specificationAttributeService = specificationAttributeService;
     this._cacheManager     = cacheManager;
     this._storeContext     = storeContext;
     this._taxService       = taxService;
     this._urlRecordService = urlRecordService;
     this._vendorService    = vendorService;
     this._webHelper        = webHelper;
     this._workContext      = workContext;
     this._mediaSettings    = mediaSettings;
     this._orderSettings    = orderSettings;
     this._seoSettings      = seoSettings;
     this._vendorSettings   = vendorSettings;
 }