コード例 #1
0
 public TopicController(ITopicService topicService,
     ILanguageService languageService,
     ILocalizedEntityService localizedEntityService, 
     ILocalizationService localizationService,
     IPermissionService permissionService, 
     IStoreService storeService,
     IStoreMappingService storeMappingService,
     IUrlRecordService urlRecordService,
     ITopicTemplateService topicTemplateService,
     ICustomerService customerService,
     ICustomerActivityService customerActivityService,
     IAclService aclService)
 {
     this._topicService = topicService;
     this._languageService = languageService;
     this._localizedEntityService = localizedEntityService;
     this._localizationService = localizationService;
     this._permissionService = permissionService;
     this._storeService = storeService;
     this._storeMappingService = storeMappingService;
     this._urlRecordService = urlRecordService;
     this._topicTemplateService = topicTemplateService;
     this._customerService = customerService;
     this._customerActivityService = customerActivityService;
     this._aclService = aclService;
 }
コード例 #2
0
 public ManufacturerController(ICategoryService categoryService, IManufacturerService manufacturerService,
     IManufacturerTemplateService manufacturerTemplateService, IProductService productService,
     ICustomerService customerService, IStoreService storeService,
     IStoreMappingService storeMappingService,
     IUrlRecordService urlRecordService, IPictureService pictureService,
     ILanguageService languageService, ILocalizationService localizationService,
     ILocalizedEntityService localizedEntityService, IExportManager exportManager,
     ICustomerActivityService customerActivityService, IAclService aclService, 
     IPermissionService permissionService,
     AdminAreaSettings adminAreaSettings, CatalogSettings catalogSettings)
 {
     this._categoryService = categoryService;
     this._manufacturerTemplateService = manufacturerTemplateService;
     this._manufacturerService = manufacturerService;
     this._productService = productService;
     this._customerService = customerService;
     this._storeService = storeService;
     this._storeMappingService = storeMappingService;
     this._urlRecordService = urlRecordService;
     this._pictureService = pictureService;
     this._languageService = languageService;
     this._localizationService = localizationService;
     this._localizedEntityService = localizedEntityService;
     this._exportManager = exportManager;
     this._customerActivityService = customerActivityService;
     this._aclService = aclService;
     this._permissionService = permissionService;
     this._adminAreaSettings = adminAreaSettings;
     this._catalogSettings = catalogSettings;
 }
コード例 #3
0
 public MiscFacebookShopController(IAclService aclService,
     ICacheManager cacheManager,
     CatalogSettings catalogSettings,
     ICategoryService categoryService,
     ICurrencyService currencyService,
     ILocalizationService localizationService,
     IPermissionService permissionService,
     IPictureService pictureService,
     IPriceCalculationService priceCalculationService,
     IPriceFormatter priceFormatter,
     IProductService productService,
     IStoreContext storeContext,
     IStoreMappingService storeMappingService,
     ITaxService taxService,
     IWorkContext workContext)
 {
     this._aclService = aclService;
     this._cacheManager = cacheManager;
     this._catalogSettings = catalogSettings;
     this._categoryService = categoryService;
     this._currencyService = currencyService;
     this._localizationService = localizationService;
     this._permissionService = permissionService;
     this._pictureService = pictureService;
     this._priceCalculationService = priceCalculationService;
     this._priceFormatter = priceFormatter;
     this._productService = productService;
     this._storeContext = storeContext;
     this._storeMappingService = storeMappingService;
     this._taxService = taxService;
     this._workContext = workContext;
 }
コード例 #4
0
ファイル: BlogController.cs プロジェクト: vic0626/nas-merk
        public BlogController(IBlogService blogService, 
            IWorkContext workContext,
            IStoreContext storeContext,
            IPictureService pictureService, 
            ILocalizationService localizationService,
            IDateTimeHelper dateTimeHelper,
            IWorkflowMessageService workflowMessageService, 
            IWebHelper webHelper,
            ICacheManager cacheManager, 
            ICustomerActivityService customerActivityService,
            IStoreMappingService storeMappingService,
            MediaSettings mediaSettings,
            BlogSettings blogSettings,
            LocalizationSettings localizationSettings, 
            CustomerSettings customerSettings,
            CaptchaSettings captchaSettings)
        {
            this._blogService = blogService;
            this._workContext = workContext;
            this._storeContext = storeContext;
            this._pictureService = pictureService;
            this._localizationService = localizationService;
            this._dateTimeHelper = dateTimeHelper;
            this._workflowMessageService = workflowMessageService;
            this._webHelper = webHelper;
            this._cacheManager = cacheManager;
            this._customerActivityService = customerActivityService;
            this._storeMappingService = storeMappingService;

            this._mediaSettings = mediaSettings;
            this._blogSettings = blogSettings;
            this._localizationSettings = localizationSettings;
            this._customerSettings = customerSettings;
            this._captchaSettings = captchaSettings;
        }
コード例 #5
0
 public WebWorkContext(HttpContextBase httpContext,
     ICustomerService customerService,
     IVendorService vendorService,
     IStoreContext storeContext,
     IAuthenticationService authenticationService,
     ILanguageService languageService,
     ICurrencyService currencyService,
     IGenericAttributeService genericAttributeService,
     TaxSettings taxSettings, 
     CurrencySettings currencySettings,
     LocalizationSettings localizationSettings,
     IUserAgentHelper userAgentHelper,
     IStoreMappingService storeMappingService)
 {
     this._httpContext = httpContext;
     this._customerService = customerService;
     this._vendorService = vendorService;
     this._storeContext = storeContext;
     this._authenticationService = authenticationService;
     this._languageService = languageService;
     this._currencyService = currencyService;
     this._genericAttributeService = genericAttributeService;
     this._taxSettings = taxSettings;
     this._currencySettings = currencySettings;
     this._localizationSettings = localizationSettings;
     this._userAgentHelper = userAgentHelper;
     this._storeMappingService = storeMappingService;
 }
コード例 #6
0
        /// <summary>
        /// Ctor
        /// </summary>
        /// <param name="cacheManager">Cache manager</param>
        /// <param name="categoryRepository">Category repository</param>
        /// <param name="productCategoryRepository">ProductCategory repository</param>
        /// <param name="productRepository">Product repository</param>
        /// <param name="aclRepository">ACL record repository</param>
		/// <param name="storeMappingRepository">Store mapping repository</param>
        /// <param name="workContext">Work context</param>
		/// <param name="storeContext">Store context</param>
        /// <param name="eventPublisher">Event publisher</param>
        public CategoryService(ICacheManager cacheManager,
            IRepository<Category> categoryRepository,
            IRepository<ProductCategory> productCategoryRepository,
            IRepository<Product> productRepository,
            IRepository<AclRecord> aclRepository,
			IRepository<StoreMapping> storeMappingRepository,
            IWorkContext workContext,
			IStoreContext storeContext,
            IEventPublisher eventPublisher,
			IStoreMappingService storeMappingService,
			IAclService aclService,
            Lazy<IEnumerable<ICategoryNavigationFilter>> navigationFilters,
            ICustomerService customerService,
            IProductService productService,
            IStoreService storeService)
        {
            this._cacheManager = cacheManager;
            this._categoryRepository = categoryRepository;
            this._productCategoryRepository = productCategoryRepository;
            this._productRepository = productRepository;
            this._aclRepository = aclRepository;
			this._storeMappingRepository = storeMappingRepository;
            this._workContext = workContext;
			this._storeContext = storeContext;
            this._eventPublisher = eventPublisher;
			this._storeMappingService = storeMappingService;
			this._aclService = aclService;
            this._navigationFilters = navigationFilters;
            this._customerService = customerService;
            this._productService = productService;
            this._storeService = storeService;

			this.QuerySettings = DbQuerySettings.Default;
        }
コード例 #7
0
 public DiyGroupController(IPermissionService permissionService,
     IDiyService branchService, 
     ILanguageService languageService, 
     ILocalizationService localizationService, 
     IStoreMappingService storeMappingService, 
     ILocalizedEntityService localizedEntityService, 
     IStoreService storeService,
     IPictureService pictureService, 
     IUrlRecordService urlRecordService, 
     ICustomerActivityService customerActivityService, 
     IWorkContext workContext,
     ICacheManager cacheManager, 
     DiySettings diySettings, 
     IWebHelper webHelper)
 {
     _permissionService = permissionService;
     _diyService = branchService;
     _languageService = languageService;
     _localizationService = localizationService;
     _storeMappingService = storeMappingService;
     _localizedEntityService = localizedEntityService;
     _storeService = storeService;
     _pictureService = pictureService;
     _urlRecordService = urlRecordService;
     _customerActivityService = customerActivityService;
     _workContext = workContext;
     _cacheManager = cacheManager;
     _diySettings = diySettings;
     _webHelper = webHelper;
 }
コード例 #8
0
        /// <summary>
        /// Get category breadcrumb 
        /// </summary>
        /// <param name="category">Category</param>
        /// <param name="categoryService">Category service</param>
        /// <param name="aclService">ACL service</param>
        /// <param name="storeMappingService">Store mapping service</param>
        /// <param name="showHidden">A value indicating whether to load hidden records</param>
        /// <returns>Category breadcrumb </returns>
        public static IList<Category> GetCategoryBreadCrumb(this Category category,
            ICategoryService categoryService,
            IAclService aclService,
            IStoreMappingService storeMappingService,
            bool showHidden = false)
        {
            if (category == null)
                throw new ArgumentNullException("category");

            var result = new List<Category>();

            //used to prevent circular references
            var alreadyProcessedCategoryIds = new List<int>();

            while (category != null && //not null
                !category.Deleted && //not deleted
                (showHidden || category.Published) && //published
                (showHidden || aclService.Authorize(category)) && //ACL
                (showHidden || storeMappingService.Authorize(category)) && //Store mapping
                !alreadyProcessedCategoryIds.Contains(category.Id)) //prevent circular references
            {
                result.Add(category);

                alreadyProcessedCategoryIds.Add(category.Id);

                category = categoryService.GetCategoryById(category.ParentCategoryId);
            }
            result.Reverse();
            return result;
        }
コード例 #9
0
 public CopyProductService(IProductService productService,
     IProductAttributeService productAttributeService,
     ILanguageService languageService,
     ILocalizedEntityService localizedEntityService, 
     IPictureService pictureService,
     ICategoryService categoryService, 
     IManufacturerService manufacturerService,
     ISpecificationAttributeService specificationAttributeService,
     IDownloadService downloadService,
     IProductAttributeParser productAttributeParser,
     IUrlRecordService urlRecordService, 
     IStoreMappingService storeMappingService)
 {
     this._productService = productService;
     this._productAttributeService = productAttributeService;
     this._languageService = languageService;
     this._localizedEntityService = localizedEntityService;
     this._pictureService = pictureService;
     this._categoryService = categoryService;
     this._manufacturerService = manufacturerService;
     this._specificationAttributeService = specificationAttributeService;
     this._downloadService = downloadService;
     this._productAttributeParser = productAttributeParser;
     this._urlRecordService = urlRecordService;
     this._storeMappingService = storeMappingService;
 }
コード例 #10
0
 public CheckoutAttributeController(ICheckoutAttributeService checkoutAttributeService,
     ILanguageService languageService, 
     ILocalizedEntityService localizedEntityService,
     ILocalizationService localizationService,
     ITaxCategoryService taxCategoryService,
     IWorkContext workContext, 
     ICurrencyService currencyService, 
     ICustomerActivityService customerActivityService, 
     CurrencySettings currencySettings,
     IMeasureService measureService, 
     MeasureSettings measureSettings,
     IPermissionService permissionService,
     IStoreService storeService,
     IStoreMappingService storeMappingService)
 {
     this._checkoutAttributeService = checkoutAttributeService;
     this._languageService = languageService;
     this._localizedEntityService = localizedEntityService;
     this._localizationService = localizationService;
     this._taxCategoryService = taxCategoryService;
     this._workContext = workContext;
     this._currencyService = currencyService;
     this._customerActivityService = customerActivityService;
     this._currencySettings = currencySettings;
     this._measureService = measureService;
     this._measureSettings = measureSettings;
     this._permissionService = permissionService;
     this._storeService = storeService;
     this._storeMappingService = storeMappingService;
 }
コード例 #11
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="sciRepository">Shopping cart repository</param>
 /// <param name="workContext">Work context</param>
 /// <param name="storeContext">Store context</param>
 /// <param name="currencyService">Currency service</param>
 /// <param name="productService">Product settings</param>
 /// <param name="localizationService">Localization service</param>
 /// <param name="productAttributeParser">Product attribute parser</param>
 /// <param name="checkoutAttributeService">Checkout attribute service</param>
 /// <param name="checkoutAttributeParser">Checkout attribute parser</param>
 /// <param name="priceFormatter">Price formatter</param>
 /// <param name="customerService">Customer service</param>
 /// <param name="shoppingCartSettings">Shopping cart settings</param>
 /// <param name="eventPublisher">Event publisher</param>
 /// <param name="permissionService">Permission service</param>
 /// <param name="aclService">ACL service</param>
 /// <param name="storeMappingService">Store mapping service</param>
 /// <param name="genericAttributeService">Generic attribute service</param>
 public ShoppingCartService(IRepository<ShoppingCartItem> sciRepository,
     IWorkContext workContext, IStoreContext storeContext,
     ICurrencyService currencyService,
     IProductService productService, ILocalizationService localizationService,
     IProductAttributeParser productAttributeParser,
     ICheckoutAttributeService checkoutAttributeService,
     ICheckoutAttributeParser checkoutAttributeParser,
     IPriceFormatter priceFormatter,
     ICustomerService customerService,
     ShoppingCartSettings shoppingCartSettings,
     IEventPublisher eventPublisher,
     IPermissionService permissionService, 
     IAclService aclService,
     IStoreMappingService storeMappingService,
     IGenericAttributeService genericAttributeService)
 {
     this._sciRepository = sciRepository;
     this._workContext = workContext;
     this._storeContext = storeContext;
     this._currencyService = currencyService;
     this._productService = productService;
     this._localizationService = localizationService;
     this._productAttributeParser = productAttributeParser;
     this._checkoutAttributeService = checkoutAttributeService;
     this._checkoutAttributeParser = checkoutAttributeParser;
     this._priceFormatter = priceFormatter;
     this._customerService = customerService;
     this._shoppingCartSettings = shoppingCartSettings;
     this._eventPublisher = eventPublisher;
     this._permissionService = permissionService;
     this._aclService = aclService;
     this._storeMappingService = storeMappingService;
     this._genericAttributeService= genericAttributeService;
 }
コード例 #12
0
        public ManufacturerController(ICategoryService categoryService, IManufacturerService manufacturerService,
            IManufacturerTemplateService manufacturerTemplateService, IProductService productService,
			IStoreService storeService,	IStoreMappingService storeMappingService,
            IUrlRecordService urlRecordService, IPictureService pictureService,
            ILanguageService languageService, ILocalizationService localizationService, ILocalizedEntityService localizedEntityService,
            IWorkContext workContext,
            ICustomerActivityService customerActivityService, IPermissionService permissionService,
			IDateTimeHelper dateTimeHelper,
            AdminAreaSettings adminAreaSettings,
			CatalogSettings catalogSettings)
        {
            this._categoryService = categoryService;
            this._manufacturerTemplateService = manufacturerTemplateService;
            this._manufacturerService = manufacturerService;
            this._productService = productService;
            this._storeService = storeService;
            this._storeMappingService = storeMappingService;
            this._urlRecordService = urlRecordService;
            this._pictureService = pictureService;
            this._languageService = languageService;
            this._localizationService = localizationService;
            this._localizedEntityService = localizedEntityService;
            this._workContext = workContext;
            this._customerActivityService = customerActivityService;
            this._permissionService = permissionService;
            this._dateTimeHelper = dateTimeHelper;
            this._adminAreaSettings = adminAreaSettings;
            this._catalogSettings = catalogSettings;
        }
コード例 #13
0
        public new void SetUp()
        {
            _languageRepo = MockRepository.GenerateMock<IRepository<Language>>();
            var lang1 = new Language
            {
                Name = "English",
                LanguageCulture = "en-Us",
                FlagImageFileName = "us.png",
                Published = true,
                DisplayOrder = 1
            };
            var lang2 = new Language
            {
                Name = "Russian",
                LanguageCulture = "ru-Ru",
                FlagImageFileName = "ru.png",
                Published = true,
                DisplayOrder = 2
            };

            _languageRepo.Expect(x => x.Table).Return(new List<Language> { lang1, lang2 }.AsQueryable());

            _storeMappingService = MockRepository.GenerateMock<IStoreMappingService>();

            var cacheManager = new NopNullCache();

            _settingService = MockRepository.GenerateMock<ISettingService>();

            _eventPublisher = MockRepository.GenerateMock<IEventPublisher>();
            _eventPublisher.Expect(x => x.Publish(Arg<object>.Is.Anything));

            _localizationSettings = new LocalizationSettings();
            _languageService = new LanguageService(cacheManager, _languageRepo, _storeMappingService,
                _settingService, _localizationSettings, _eventPublisher);
        }
コード例 #14
0
 public CountryController(ICountryService countryService,
     IStateProvinceService stateProvinceService,
     ICityService cityService,
     IZipcodeService zipcodeService,
     ILocalizationService localizationService,
     IAddressService addressService,
     IPermissionService permissionService,
     ILocalizedEntityService localizedEntityService,
     ILanguageService languageService,
     IStoreService storeService,
     IStoreMappingService storeMappingService,
     IExportManager exportManager,
     IImportManager importManager)
 {
     this._countryService = countryService;
     this._stateProvinceService = stateProvinceService;
     this._cityService = cityService;
     this._zipcodeService = zipcodeService;
     this._localizationService = localizationService;
     this._addressService = addressService;
     this._permissionService = permissionService;
     this._localizedEntityService = localizedEntityService;
     this._languageService = languageService;
     this._storeService = storeService;
     this._storeMappingService = storeMappingService;
     this._exportManager = exportManager;
     this._importManager = importManager;
 }
コード例 #15
0
ファイル: ImportManager.cs プロジェクト: mandocaesar/Mesinku
        public ImportManager(
			IProductService productService, 
			ICategoryService categoryService,
            IManufacturerService manufacturerService, 
			IPictureService pictureService,
            IUrlRecordService urlRecordService,
			SeoSettings seoSettings,
			IEventPublisher eventPublisher,
			IRepository<Product> rsProduct,
			IRepository<ProductCategory> rsProductCategory,
			IRepository<ProductManufacturer> rsProductManufacturer,
            IRepository<Picture> rsPicture,
			IRepository<ProductPicture> rsProductPicture,
            IRepository<UrlRecord> rsUrlRecord,
            ILanguageService languageService,
            ILocalizedEntityService localizedEntityService,
            IStoreMappingService storeMappingService)
        {
            this._productService = productService;
            this._categoryService = categoryService;
            this._manufacturerService = manufacturerService;
            this._pictureService = pictureService;
            this._urlRecordService = urlRecordService;
            this._seoSettings = seoSettings;
            this._eventPublisher = eventPublisher;
            this._rsProduct = rsProduct;
            this._rsProductCategory = rsProductCategory;
            this._rsProductManufacturer = rsProductManufacturer;
            this._rsProductPicture = rsProductPicture;
            this._rsUrlRecord = rsUrlRecord;
            this._rsPicture = rsPicture;
            this._languageService = languageService;
            this._localizedEntityService = localizedEntityService;
            this._storeMappingService = storeMappingService;
        }
コード例 #16
0
ファイル: ExportManager.cs プロジェクト: mandocaesar/Mesinku
        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;
        }
コード例 #17
0
        public CheckoutController(IWorkContext workContext,
            IStoreContext storeContext,
            IStoreMappingService storeMappingService,
            IShoppingCartService shoppingCartService, 
            ILocalizationService localizationService, 
            ITaxService taxService, 
            ICurrencyService currencyService, 
            IPriceFormatter priceFormatter, 
            IOrderProcessingService orderProcessingService,
            ICustomerService customerService, 
            IGenericAttributeService genericAttributeService,
            ICountryService countryService,
            IStateProvinceService stateProvinceService,
            IShippingService shippingService, 
            IPaymentService paymentService,
            IPluginFinder pluginFinder,
            IOrderTotalCalculationService orderTotalCalculationService,
            ILogger logger,
            IOrderService orderService,
            IWebHelper webHelper,
            HttpContextBase httpContext,
            IMobileDeviceHelper mobileDeviceHelper,
            OrderSettings orderSettings, 
            RewardPointsSettings rewardPointsSettings,
            PaymentSettings paymentSettings,
            ShippingSettings shippingSettings,
            AddressSettings addressSettings)
        {
            this._workContext = workContext;
            this._storeContext = storeContext;
            this._storeMappingService = storeMappingService;
            this._shoppingCartService = shoppingCartService;
            this._localizationService = localizationService;
            this._taxService = taxService;
            this._currencyService = currencyService;
            this._priceFormatter = priceFormatter;
            this._orderProcessingService = orderProcessingService;
            this._customerService = customerService;
            this._genericAttributeService = genericAttributeService;
            this._countryService = countryService;
            this._stateProvinceService = stateProvinceService;
            this._shippingService = shippingService;
            this._paymentService = paymentService;
            this._pluginFinder = pluginFinder;
            this._orderTotalCalculationService = orderTotalCalculationService;
            this._logger = logger;
            this._orderService = orderService;
            this._webHelper = webHelper;
            this._httpContext = httpContext;
            this._mobileDeviceHelper = mobileDeviceHelper;

            this._orderSettings = orderSettings;
            this._rewardPointsSettings = rewardPointsSettings;
            this._paymentSettings = paymentSettings;
            this._shippingSettings = shippingSettings;
            this._addressSettings = addressSettings;
        }
コード例 #18
0
 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;
 }
コード例 #19
0
 public MtProductService(ICacheManager cacheManager,
     IRepository<Product> productRepository,
     IRepository<RelatedProduct> relatedProductRepository,
     IRepository<CrossSellProduct> crossSellProductRepository,
     IRepository<TierPrice> tierPriceRepository,
     IRepository<ProductPicture> productPictureRepository,
     IRepository<LocalizedProperty> localizedPropertyRepository,
     IRepository<AclRecord> aclRepository,
     IRepository<StoreMapping> storeMappingRepository,
     IRepository<ProductSpecificationAttribute> productSpecificationAttributeRepository,
     IRepository<ProductReview> productReviewRepository,
     IRepository<ProductWarehouseInventory> productWarehouseInventoryRepository,
     IProductAttributeService productAttributeService,
     IProductAttributeParser productAttributeParser,
     ILanguageService languageService,
     IWorkflowMessageService workflowMessageService,
     IDataProvider dataProvider,
     IDbContext dbContext,
     IWorkContext workContext,
     IStoreContext storeContext,
     LocalizationSettings localizationSettings,
     CommonSettings commonSettings,
     CatalogSettings catalogSettings,
     IEventPublisher eventPublisher,
     IAclService aclService,
     IStoreMappingService storeMappingService)
 {
     this._cacheManager = cacheManager;
     this._productRepository = productRepository;
     this._relatedProductRepository = relatedProductRepository;
     this._crossSellProductRepository = crossSellProductRepository;
     this._tierPriceRepository = tierPriceRepository;
     this._productPictureRepository = productPictureRepository;
     this._localizedPropertyRepository = localizedPropertyRepository;
     this._aclRepository = aclRepository;
     this._storeMappingRepository = storeMappingRepository;
     this._productSpecificationAttributeRepository = productSpecificationAttributeRepository;
     this._productReviewRepository = productReviewRepository;
     this._productWarehouseInventoryRepository = productWarehouseInventoryRepository;
     this._productAttributeService = productAttributeService;
     this._productAttributeParser = productAttributeParser;
     this._languageService = languageService;
     this._workflowMessageService = workflowMessageService;
     this._dataProvider = dataProvider;
     this._dbContext = dbContext;
     this._workContext = workContext;
     this._storeContext = storeContext;
     this._localizationSettings = localizationSettings;
     this._commonSettings = commonSettings;
     this._catalogSettings = catalogSettings;
     this._eventPublisher = eventPublisher;
     this._aclService = aclService;
     this._storeMappingService = storeMappingService;
 }
コード例 #20
0
ファイル: TopicService.cs プロジェクト: minuzZ/zelectroshop
 public TopicService(IRepository<Topic> topicRepository, 
     IRepository<StoreMapping> storeMappingRepository,
     IStoreMappingService storeMappingService,
     CatalogSettings catalogSettings,
     IEventPublisher eventPublisher)
 {
     this._topicRepository = topicRepository;
     this._storeMappingRepository = storeMappingRepository;
     this._storeMappingService = storeMappingService;
     this._catalogSettings = catalogSettings;
     this._eventPublisher = eventPublisher;
 }
コード例 #21
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="cacheManager">Cache manager</param>
 /// <param name="checkoutAttributeRepository">Checkout attribute repository</param>
 /// <param name="checkoutAttributeValueRepository">Checkout attribute value repository</param>
 /// <param name="storeMappingService">Store mapping service</param>
 /// <param name="eventPublisher">Event published</param>
 public CheckoutAttributeService(ICacheManager cacheManager,
     IRepository<CheckoutAttribute> checkoutAttributeRepository,
     IRepository<CheckoutAttributeValue> checkoutAttributeValueRepository,
     IStoreMappingService storeMappingService,
     IEventPublisher eventPublisher)
 {
     this._cacheManager = cacheManager;
     this._checkoutAttributeRepository = checkoutAttributeRepository;
     this._checkoutAttributeValueRepository = checkoutAttributeValueRepository;
     this._storeMappingService = storeMappingService;
     this._eventPublisher = eventPublisher;
 }
コード例 #22
0
ファイル: LanguageService.cs プロジェクト: hsb0307/Nut.NET
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="cacheManager">Cache manager</param>
 /// <param name="languageRepository">Language repository</param>
 /// <param name="storeMappingService">Store mapping service</param>
 /// <param name="settingService">Setting service</param>
 /// <param name="localizationSettings">Localization settings</param>
 /// <param name="eventPublisher">Event published</param>
 public LanguageService(ICacheManager cacheManager,
     IRepository<Language> languageRepository,
     IStoreMappingService storeMappingService,
     ISettingService settingService,
     LocalizationSettings localizationSettings,
     ISignals signals) {
     this._cacheManager = cacheManager;
     this._languageRepository = languageRepository;
     this._storeMappingService = storeMappingService;
     this._settingService = settingService;
     this._localizationSettings = localizationSettings;
     this._signals = signals;
 }
コード例 #23
0
ファイル: LanguageController.cs プロジェクト: hsb0307/Nut.NET
 public LanguageController(ILanguageService languageService,
     ILocalizationService localizationService,
     IStoreService storeService,
     IStoreMappingService storeMappingService,
     IPermissionService permissionService,
     IWebHelper webHelper) {
     this._localizationService = localizationService;
     this._languageService = languageService;
     this._storeService = storeService;
     this._storeMappingService = storeMappingService;
     this._permissionService = permissionService;
     this._webHelper = webHelper;
 }
コード例 #24
0
 public TopicController(ITopicService topicService, ILanguageService languageService,
     ILocalizedEntityService localizedEntityService, ILocalizationService localizationService,
     IPermissionService permissionService, IStoreService storeService,
     IStoreMappingService storeMappingService)
 {
     this._topicService = topicService;
     this._languageService = languageService;
     this._localizedEntityService = localizedEntityService;
     this._localizationService = localizationService;
     this._permissionService = permissionService;
     this._storeService = storeService;
     this._storeMappingService = storeMappingService;
 }
コード例 #25
0
 public TopicController(ITopicService topicService,
     ILocalizationService localizationService,
     IWorkContext workContext, 
     IStoreContext storeContext,
     ICacheManager cacheManager,
     IStoreMappingService storeMappingService)
 {
     this._topicService = topicService;
     this._workContext = workContext;
     this._storeContext = storeContext;
     this._localizationService = localizationService;
     this._cacheManager = cacheManager;
     this._storeMappingService = storeMappingService;
 }
コード例 #26
0
 public LanguageController(ILanguageService languageService,
     ILocalizationService localizationService,
     IStoreService storeService, 
     IStoreMappingService storeMappingService,
     IPermissionService permissionService,
     AdminAreaSettings adminAreaSettings)
 {
     this._localizationService = localizationService;
     this._languageService = languageService;
     this._storeService = storeService;
     this._storeMappingService = storeMappingService;
     this._permissionService = permissionService;
     this._adminAreaSettings = adminAreaSettings;
 }
コード例 #27
0
ファイル: LanguageController.cs プロジェクト: nvolpe/raver
		public LanguageController(ILanguageService languageService,
            ILocalizationService localizationService,
            ICurrencyService currencyService,
            IStoreService storeService, 
            IStoreMappingService storeMappingService,
            IPermissionService permissionService)
		{
			this._localizationService = localizationService;
            this._languageService = languageService;
            this._currencyService = currencyService;
            this._storeService = storeService;
            this._storeMappingService = storeMappingService;
            this._permissionService = permissionService;
		}
コード例 #28
0
ファイル: LanguageService.cs プロジェクト: LaOrigin/Leorigin
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="cacheManager">Cache manager</param>
 /// <param name="languageRepository">Language repository</param>
 /// <param name="storeMappingService">Store mapping service</param>
 /// <param name="settingService">Setting service</param>
 /// <param name="localizationSettings">Localization settings</param>
 /// <param name="eventPublisher">Event published</param>
 public LanguageService(ICacheManager cacheManager,
     IRepository<Language> languageRepository,
     IStoreMappingService storeMappingService,
     ISettingService settingService,
     LocalizationSettings localizationSettings,
     IEventPublisher eventPublisher)
 {
     this._cacheManager = cacheManager;
     this._languageRepository = languageRepository;
     this._storeMappingService = storeMappingService;
     this._settingService = settingService;
     this._localizationSettings = localizationSettings;
     this._eventPublisher = eventPublisher;
 }
コード例 #29
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="cacheManager">Cache manager</param>
 /// <param name="currencyRepository">Currency repository</param>
 /// <param name="storeMappingService">Store mapping service</param>
 /// <param name="currencySettings">Currency settings</param>
 /// <param name="pluginFinder">Plugin finder</param>
 /// <param name="eventPublisher">Event published</param>
 public CurrencyService(ICacheManager cacheManager,
     IRepository<Currency> currencyRepository,
     IStoreMappingService storeMappingService,
     CurrencySettings currencySettings,
     IPluginFinder pluginFinder,
     IEventPublisher eventPublisher)
 {
     this._cacheManager = cacheManager;
     this._currencyRepository = currencyRepository;
     this._storeMappingService = storeMappingService;
     this._currencySettings = currencySettings;
     this._pluginFinder = pluginFinder;
     this._eventPublisher = eventPublisher;
 }
コード例 #30
0
        public new void SetUp()
        {
            var cacheManager = new NopNullCache();

            _workContext = null;

            _currencySettings = new CurrencySettings();
            var currency1 = new Currency
            {
                Id = 1,
                Name = "Euro",
                CurrencyCode = "EUR",
                DisplayLocale =  "",
                CustomFormatting = "€0.00",
                DisplayOrder = 1,
                Published = true,
                CreatedOnUtc = DateTime.UtcNow,
                UpdatedOnUtc= DateTime.UtcNow
            };
            var currency2 = new Currency
            {
                Id = 1,
                Name = "US Dollar",
                CurrencyCode = "USD",
                DisplayLocale = "en-US",
                CustomFormatting = "",
                DisplayOrder = 2,
                Published = true,
                CreatedOnUtc = DateTime.UtcNow,
                UpdatedOnUtc= DateTime.UtcNow
            };            
            _currencyRepo = MockRepository.GenerateMock<IRepository<Currency>>();
            _currencyRepo.Expect(x => x.Table).Return(new List<Currency>() { currency1, currency2 }.AsQueryable());

            _storeMappingService = MockRepository.GenerateMock<IStoreMappingService>();

            var pluginFinder = new PluginFinder();
            _currencyService = new CurrencyService(cacheManager, _currencyRepo, _storeMappingService,
                _currencySettings, pluginFinder, null);

            _taxSettings = new TaxSettings();

            _localizationService = MockRepository.GenerateMock<ILocalizationService>();
            _localizationService.Expect(x => x.GetResource("Products.InclTaxSuffix", 1, false)).Return("{0} incl tax");
            _localizationService.Expect(x => x.GetResource("Products.ExclTaxSuffix", 1, false)).Return("{0} excl tax");
            
            _priceFormatter = new PriceFormatter(_workContext, _currencyService,_localizationService, 
                _taxSettings, _currencySettings);
        }
コード例 #31
0
 public CategoryController(ICategoryService categoryService, ICategoryTemplateService categoryTemplateService,
                           IManufacturerService manufacturerService, IProductService productService,
                           ICustomerService customerService,
                           IUrlRecordService urlRecordService, IPictureService pictureService, ILanguageService languageService,
                           ILocalizationService localizationService, ILocalizedEntityService localizedEntityService,
                           IDiscountService discountService, IPermissionService permissionService,
                           IAclService aclService, IStoreService storeService, IStoreMappingService storeMappingService,
                           IWorkContext workContext,
                           ICustomerActivityService customerActivityService,
                           IDateTimeHelper dateTimeHelper,
                           AdminAreaSettings adminAreaSettings,
                           CatalogSettings catalogSettings,
                           IEventPublisher eventPublisher,
                           IFilterService filterService)
 {
     this._categoryService         = categoryService;
     this._categoryTemplateService = categoryTemplateService;
     this._manufacturerService     = manufacturerService;
     this._productService          = productService;
     this._customerService         = customerService;
     this._urlRecordService        = urlRecordService;
     this._pictureService          = pictureService;
     this._languageService         = languageService;
     this._localizationService     = localizationService;
     this._localizedEntityService  = localizedEntityService;
     this._discountService         = discountService;
     this._permissionService       = permissionService;
     this._aclService              = aclService;
     this._storeService            = storeService;
     this._storeMappingService     = storeMappingService;
     this._workContext             = workContext;
     this._customerActivityService = customerActivityService;
     this._dateTimeHelper          = dateTimeHelper;
     this._adminAreaSettings       = adminAreaSettings;
     this._catalogSettings         = catalogSettings;
     this._eventPublisher          = eventPublisher;
     this._filterService           = filterService;
 }
コード例 #32
0
 public ManufacturerController(IAclService aclService,
                               ICustomerActivityService customerActivityService,
                               ICustomerService customerService,
                               IDiscountService discountService,
                               IExportManager exportManager,
                               IImportManager importManager,
                               ILocalizationService localizationService,
                               ILocalizedEntityService localizedEntityService,
                               IManufacturerModelFactory manufacturerModelFactory,
                               IManufacturerService manufacturerService,
                               INotificationService notificationService,
                               IPermissionService permissionService,
                               IPictureService pictureService,
                               IProductService productService,
                               IStoreMappingService storeMappingService,
                               IStoreService storeService,
                               IUrlRecordService urlRecordService,
                               IWorkContext workContext)
 {
     _aclService = aclService;
     _customerActivityService  = customerActivityService;
     _customerService          = customerService;
     _discountService          = discountService;
     _exportManager            = exportManager;
     _importManager            = importManager;
     _localizationService      = localizationService;
     _localizedEntityService   = localizedEntityService;
     _manufacturerModelFactory = manufacturerModelFactory;
     _manufacturerService      = manufacturerService;
     _notificationService      = notificationService;
     _permissionService        = permissionService;
     _pictureService           = pictureService;
     _productService           = productService;
     _storeMappingService      = storeMappingService;
     _storeService             = storeService;
     _urlRecordService         = urlRecordService;
     _workContext = workContext;
 }
コード例 #33
0
 public CategoryController(ICategoryService categoryService, ICategoryTemplateService categoryTemplateService,
                           IManufacturerService manufacturerService, IProductService productService,
                           ICustomerService customerService,
                           IUrlRecordService urlRecordService,
                           IPictureService pictureService,
                           ILanguageService languageService,
                           ILocalizationService localizationService,
                           ILocalizedEntityService localizedEntityService,
                           IDiscountService discountService,
                           IPermissionService permissionService,
                           IAclService aclService,
                           IStoreService storeService,
                           IStoreMappingService storeMappingService,
                           IExportManager exportManager,
                           IVendorService vendorService,
                           ICustomerActivityService customerActivityService,
                           CatalogSettings catalogSettings)
 {
     this._categoryService         = categoryService;
     this._categoryTemplateService = categoryTemplateService;
     this._manufacturerService     = manufacturerService;
     this._productService          = productService;
     this._customerService         = customerService;
     this._urlRecordService        = urlRecordService;
     this._pictureService          = pictureService;
     this._languageService         = languageService;
     this._localizationService     = localizationService;
     this._localizedEntityService  = localizedEntityService;
     this._discountService         = discountService;
     this._permissionService       = permissionService;
     this._vendorService           = vendorService;
     this._aclService              = aclService;
     this._storeService            = storeService;
     this._storeMappingService     = storeMappingService;
     this._exportManager           = exportManager;
     this._customerActivityService = customerActivityService;
     this._catalogSettings         = catalogSettings;
 }
コード例 #34
0
        public BlogController(
            ICommonServices services,
            IBlogService blogService,
            IMediaService mediaService,
            ICustomerContentService customerContentService,
            IDateTimeHelper dateTimeHelper,
            IWebHelper webHelper,
            ICacheManager cacheManager,
            ICustomerActivityService customerActivityService,
            IStoreMappingService storeMappingService,
            ILanguageService languageService,
            IGenericAttributeService genericAttributeService,
            MediaSettings mediaSettings,
            BlogSettings blogSettings,
            LocalizationSettings localizationSettings,
            CustomerSettings customerSettings,
            CaptchaSettings captchaSettings,
            SeoSettings seoSettings)
        {
            _services                = services;
            _blogService             = blogService;
            _mediaService            = mediaService;
            _customerContentService  = customerContentService;
            _dateTimeHelper          = dateTimeHelper;
            _webHelper               = webHelper;
            _cacheManager            = cacheManager;
            _customerActivityService = customerActivityService;
            _storeMappingService     = storeMappingService;
            _languageService         = languageService;
            _genericAttributeService = genericAttributeService;

            _mediaSettings        = mediaSettings;
            _blogSettings         = blogSettings;
            _localizationSettings = localizationSettings;
            _customerSettings     = customerSettings;
            _captchaSettings      = captchaSettings;
            _seoSettings          = seoSettings;
        }
コード例 #35
0
        public new void SetUp()
        {
            _languageRepo = MockRepository.GenerateMock <IRepository <Language> >();
            var lang1 = new Language
            {
                Name              = "English",
                LanguageCulture   = "en-Us",
                FlagImageFileName = "us.png",
                Published         = true,
                DisplayOrder      = 1
            };
            var lang2 = new Language
            {
                Name              = "Russian",
                LanguageCulture   = "ru-Ru",
                FlagImageFileName = "ru.png",
                Published         = true,
                DisplayOrder      = 2
            };

            _languageRepo.Expect(x => x.Table).Return(new List <Language>()
            {
                lang1, lang2
            }.AsQueryable());

            _storeMappingService = MockRepository.GenerateMock <IStoreMappingService>();

            var cacheManager = new NopNullCache();

            _settingService = MockRepository.GenerateMock <ISettingService>();

            _eventPublisher = MockRepository.GenerateMock <IEventPublisher>();
            _eventPublisher.Expect(x => x.Publish(Arg <object> .Is.Anything));

            _localizationSettings = new LocalizationSettings();
            _languageService      = new LanguageService(cacheManager, _languageRepo, _storeMappingService,
                                                        _settingService, _localizationSettings, _eventPublisher);
        }
コード例 #36
0
 public BlogViewModelService(IBlogService blogService,
                             IWorkContext workContext,
                             IStoreContext storeContext,
                             IPictureService pictureService,
                             ILocalizationService localizationService,
                             IDateTimeHelper dateTimeHelper,
                             IWorkflowMessageService workflowMessageService,
                             IWebHelper webHelper,
                             ICacheManager cacheManager,
                             ICustomerActivityService customerActivityService,
                             IStoreMappingService storeMappingService,
                             IPermissionService permissionService,
                             IServiceProvider serviceProvider,
                             MediaSettings mediaSettings,
                             BlogSettings blogSettings,
                             LocalizationSettings localizationSettings,
                             CustomerSettings customerSettings,
                             CaptchaSettings captchaSettings)
 {
     this._blogService            = blogService;
     this._workContext            = workContext;
     this._storeContext           = storeContext;
     this._pictureService         = pictureService;
     this._localizationService    = localizationService;
     this._dateTimeHelper         = dateTimeHelper;
     this._workflowMessageService = workflowMessageService;
     this._webHelper               = webHelper;
     this._cacheManager            = cacheManager;
     this._customerActivityService = customerActivityService;
     this._storeMappingService     = storeMappingService;
     this._permissionService       = permissionService;
     this._serviceProvider         = serviceProvider;
     this._mediaSettings           = mediaSettings;
     this._blogSettings            = blogSettings;
     this._localizationSettings    = localizationSettings;
     this._customerSettings        = customerSettings;
     this._captchaSettings         = captchaSettings;
 }
コード例 #37
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;
        }
コード例 #38
0
 public SpecificationAttributesController(IJsonFieldsSerializer jsonFieldsSerializer,
                                          ICustomerActivityService customerActivityService,
                                          ILocalizationService localizationService,
                                          IAclService aclService,
                                          IStoreMappingService storeMappingService,
                                          IStoreService storeService,
                                          ICustomerService customerService,
                                          IDiscountService discountService,
                                          IPictureService pictureService,
                                          ISpecificationAttributeService specificationAttributeService,
                                          ISpecificationAttributeApiService specificationAttributesApiService,
                                          IDTOHelper dtoHelper,
                                          ILocalizedEntityService localizedEntityService,
                                          IProductAttributesApiService productAttributesApiService,
                                          IUrlRecordService urlRecordService) : base(jsonFieldsSerializer, aclService, customerService, storeMappingService, storeService, discountService, customerActivityService, localizationService, pictureService)
 {
     _specificationAttributeService    = specificationAttributeService;
     _specificationAttributeApiService = specificationAttributesApiService;
     _dtoHelper = dtoHelper;
     _localizedEntityService      = localizedEntityService;
     _urlRecordService            = urlRecordService;
     _productAttributesApiService = productAttributesApiService;
 }
コード例 #39
0
        public PaymentService(
            IRepository <PaymentMethod> paymentMethodRepository,
            IRepository <StoreMapping> storeMappingRepository,
            IStoreMappingService storeMappingService,
            PaymentSettings paymentSettings,
            ICartRuleProvider cartRuleProvider,
            IProviderManager providerManager,
            ICommonServices services,
            ITypeFinder typeFinder)
        {
            _paymentMethodRepository = paymentMethodRepository;
            _storeMappingRepository  = storeMappingRepository;
            _storeMappingService     = storeMappingService;
            _paymentSettings         = paymentSettings;
            _cartRuleProvider        = cartRuleProvider;
            _providerManager         = providerManager;
            _services   = services;
            _typeFinder = typeFinder;

            T             = NullLocalizer.Instance;
            Logger        = NullLogger.Instance;
            QuerySettings = DbQuerySettings.Default;
        }
コード例 #40
0
 public CustomCategoryService(ICacheManager cacheManager,
                              IRepository <Category> categoryRepository,
                              IRepository <ProductCategory> productCategoryRepository,
                              IRepository <Product> productRepository,
                              IRepository <AclRecord> aclRepository,
                              IRepository <StoreMapping> storeMappingRepository,
                              IWorkContext workContext,
                              IStoreContext storeContext,
                              IEventPublisher eventPublisher,
                              IStoreMappingService storeMappingService,
                              IAclService aclService,
                              CatalogSettings catalogSettings) : base(cacheManager, categoryRepository, productCategoryRepository, productRepository, aclRepository, storeMappingRepository, workContext, storeContext, eventPublisher, storeMappingService, aclService, catalogSettings)
 {
     _cacheManager              = cacheManager;
     _categoryRepository        = categoryRepository;
     _productCategoryRepository = productCategoryRepository;
     _productRepository         = productRepository;
     _storeMappingRepository    = storeMappingRepository;
     _workContext         = workContext;
     _storeContext        = storeContext;
     _storeMappingService = storeMappingService;
     _aclService          = aclService;
 }
コード例 #41
0
ファイル: ProductApiService.cs プロジェクト: sykyck/Nop
 public ProductApiService(IRepository <Product> productRepository,
                          IRepository <ProductCategory> productCategoryMappingRepository,
                          IRepository <Vendor> vendorRepository,
                          IStoreMappingService storeMappingService,
                          IProductAttributeService productAttributeService,
                          IWorkContext workContext,
                          ISpecificationAttributeService specificationAttributeService,
                          ICacheManager cacheManager,
                          ILocalizationService localizationService,
                          ICategoryService categoryService,
                          IProductService productService)
 {
     _productRepository = productRepository;
     _productCategoryMappingRepository = productCategoryMappingRepository;
     _vendorRepository              = vendorRepository;
     _storeMappingService           = storeMappingService;
     _productService                = productService;
     _specificationAttributeService = specificationAttributeService;
     _cacheManager        = cacheManager;
     _workContext         = workContext;
     _localizationService = localizationService;
     _categoryService     = categoryService;
 }
コード例 #42
0
 public WebHookRegistrationsController(IJsonFieldsSerializer jsonFieldsSerializer,
                                       IAclService aclService,
                                       ICustomerService customerService,
                                       IStoreMappingService storeMappingService,
                                       IStoreService storeService,
                                       IDiscountService discountService,
                                       ICustomerActivityService customerActivityService,
                                       ILocalizationService localizationService,
                                       IPictureService pictureService,
                                       IAuthorizationHelper authorizationHelper,
                                       IStoreContext storeContext)
     : base(jsonFieldsSerializer,
            aclService, customerService,
            storeMappingService,
            storeService,
            discountService,
            customerActivityService,
            localizationService,
            pictureService)
 {
     _authorizationHelper = authorizationHelper;
     _storeContext        = storeContext;
 }
コード例 #43
0
 public CustomManufacturerService(CatalogSettings catalogSettings,
                                  IAclService aclService,
                                  ICategoryService categoryService,
                                  ICustomerService customerService,
                                  IRepository <DiscountManufacturerMapping> discountManufacturerMappingRepository,
                                  IRepository <Manufacturer> manufacturerRepository,
                                  IRepository <Product> productRepository,
                                  IRepository <ProductManufacturer> productManufacturerRepository,
                                  IRepository <ProductCategory> productCategoryRepository,
                                  IStaticCacheManager staticCacheManager,
                                  IStoreContext storeContext,
                                  IStoreMappingService storeMappingService,
                                  IWorkContext workContext
                                  ) : base(catalogSettings, aclService,
                                           categoryService, customerService,
                                           discountManufacturerMappingRepository, manufacturerRepository,
                                           productRepository,
                                           productManufacturerRepository, productCategoryRepository,
                                           staticCacheManager, storeContext,
                                           storeMappingService, workContext)
 {
     _manufacturerRepository = manufacturerRepository;
 }
コード例 #44
0
 public KnowledgebaseController(KnowledgebaseSettings knowledgebaseSettings, IKnowledgebaseService knowledgebaseService, IWorkContext workContext,
                                IStoreContext storeContext, ICacheManager cacheManager, IAclService aclService, IStoreMappingService storeMappingService, ILocalizationService localizationService,
                                CaptchaSettings captchaSettings, LocalizationSettings localizationSettings, IWorkflowMessageService workflowMessageService,
                                ICustomerActivityService customerActivityService, IDateTimeHelper dateTimeHelper, CustomerSettings customerSettings,
                                MediaSettings mediaSettings, IPictureService pictureService)
 {
     _knowledgebaseSettings   = knowledgebaseSettings;
     _knowledgebaseService    = knowledgebaseService;
     _workContext             = workContext;
     _storeContext            = storeContext;
     _cacheManager            = cacheManager;
     _aclService              = aclService;
     _storeMappingService     = storeMappingService;
     _localizationService     = localizationService;
     _captchaSettings         = captchaSettings;
     _localizationSettings    = localizationSettings;
     _workflowMessageService  = workflowMessageService;
     _customerActivityService = customerActivityService;
     _dateTimeHelper          = dateTimeHelper;
     _customerSettings        = customerSettings;
     _mediaSettings           = mediaSettings;
     _pictureService          = pictureService;
 }
コード例 #45
0
ファイル: TopicService.cs プロジェクト: alishbeta/vegas
 public TopicService(CatalogSettings catalogSettings,
                     IAclService aclService,
                     ICacheManager cacheManager,
                     IEventPublisher eventPublisher,
                     IRepository <AclRecord> aclRepository,
                     IRepository <StoreMapping> storeMappingRepository,
                     IRepository <Topic> topicRepository,
                     IStoreMappingService storeMappingService,
                     IWorkContext workContext,
                     IRepository <TopicCategory> topicCategoryRepository)
 {
     this._catalogSettings         = catalogSettings;
     this._aclService              = aclService;
     this._cacheManager            = cacheManager;
     this._eventPublisher          = eventPublisher;
     this._aclRepository           = aclRepository;
     this._storeMappingRepository  = storeMappingRepository;
     this._topicRepository         = topicRepository;
     this._storeMappingService     = storeMappingService;
     this._workContext             = workContext;
     this._topicCategoryRepository = topicCategoryRepository;
     this._entityName              = typeof(Topic).Name;
 }
コード例 #46
0
 public WebWorkContext(
     IAuthenticationService authenticationService,
     ICustomerService customerService,
     IGenericAttributeService genericAttributeService,
     IHttpContextAccessor httpContextAccessor,
     ILanguageService languageService,
     IStoreContext storeContext,
     IStoreMappingService storeMappingService,
     IUserAgentHelper userAgentHelper,
     IVendorService vendorService,
     LocalizationSettings localizationSettings)
 {
     this._authenticationService   = authenticationService;
     this._customerService         = customerService;
     this._genericAttributeService = genericAttributeService;
     this._httpContextAccessor     = httpContextAccessor;
     this._languageService         = languageService;
     this._storeContext            = storeContext;
     this._storeMappingService     = storeMappingService;
     this._userAgentHelper         = userAgentHelper;
     this._vendorService           = vendorService;
     this._localizationSettings    = localizationSettings;
 }
コード例 #47
0
 public CheckoutAttributeController(
     ICommonServices services,
     ICheckoutAttributeService checkoutAttributeService,
     ILanguageService languageService,
     ILocalizedEntityService localizedEntityService,
     ITaxCategoryService taxCategoryService,
     ICustomerActivityService customerActivityService,
     IMeasureService measureService,
     MeasureSettings measureSettings,
     IStoreMappingService storeMappingService,
     AdminAreaSettings adminAreaSettings)
 {
     _services = services;
     _checkoutAttributeService = checkoutAttributeService;
     _languageService          = languageService;
     _localizedEntityService   = localizedEntityService;
     _taxCategoryService       = taxCategoryService;
     _customerActivityService  = customerActivityService;
     _measureService           = measureService;
     _measureSettings          = measureSettings;
     _storeMappingService      = storeMappingService;
     _adminAreaSettings        = adminAreaSettings;
 }
コード例 #48
0
        public TopicsController(
            IJsonFieldsSerializer jsonFieldsSerializer,
            IAclService aclService,
            ITopicService topicService,
            ICustomerService customerService,
            IStoreMappingService storeMappingService,
            IStoreService storeService,
            IDiscountService discountService,
            ICustomerActivityService customerActivityService,
            ILocalizationService localizationService,
            IStoreContext storeContext,
            IDTOHelper dtoHelper,
            IPictureService pictureService,
            IFactory <Topic> factory

            ) : base(jsonFieldsSerializer, aclService, customerService, storeMappingService,
                     storeService, discountService, customerActivityService, localizationService, pictureService)
        {
            _topicService = topicService;
            _storeContext = storeContext;
            _dtoHelper    = dtoHelper;
            _factory      = factory;
        }
コード例 #49
0
 public AdCampaignController(IAdCampaignService adCampaignService, IPermissionService permissionService,
                             IAclService aclService, IStoreService storeService, IStoreMappingService storeMappingService,
                             AdminAreaSettings adminAreaSettings,
                             IWorkContext workContext,
                             ILocalizationService localizationService,
                             ICustomerActivityService customerActivityService,
                             ICustomerService customerService,
                             IGenericAttributeService genericAttributeService,
                             ITransactionService transactionService)
 {
     _adCampaignService       = adCampaignService;
     _permissionService       = permissionService;
     _aclService              = aclService;
     _storeService            = storeService;
     _adminAreaSettings       = adminAreaSettings;
     _localizationService     = localizationService;
     _customerActivityService = customerActivityService;
     _workContext             = workContext;
     _storeMappingService     = storeMappingService;
     _customerService         = customerService;
     _genericAttributeService = genericAttributeService;
     _transactionService      = transactionService;
 }
コード例 #50
0
 public CopyProductService(IProductService productService,
                           IProductAttributeService productAttributeService, ILanguageService languageService,
                           ILocalizedEntityService localizedEntityService, IPictureService pictureService,
                           ICategoryService categoryService, IManufacturerService manufacturerService,
                           ISpecificationAttributeService specificationAttributeService, IDownloadService downloadService,
                           IProductAttributeParser productAttributeParser, IUrlRecordService urlRecordService,
                           IStoreMappingService storeMappingService,
                           ILocalizationService localizationService)
 {
     this._productService                = productService;
     this._productAttributeService       = productAttributeService;
     this._languageService               = languageService;
     this._localizedEntityService        = localizedEntityService;
     this._pictureService                = pictureService;
     this._categoryService               = categoryService;
     this._manufacturerService           = manufacturerService;
     this._specificationAttributeService = specificationAttributeService;
     this._downloadService               = downloadService;
     this._productAttributeParser        = productAttributeParser;
     this._urlRecordService              = urlRecordService;
     this._storeMappingService           = storeMappingService;
     this._localizationService           = localizationService;
 }
コード例 #51
0
ファイル: NewsController.cs プロジェクト: krreddy123/appcode
 public NewsController(
     INewsService newsService,
     ILanguageService languageService,
     IDateTimeHelper dateTimeHelper,
     ICustomerContentService customerContentService,
     ILocalizedEntityService localizedEntityService,
     IUrlRecordService urlRecordService,
     IStoreService storeService,
     IStoreMappingService storeMappingService,
     ICustomerService customerService,
     AdminAreaSettings adminAreaSettings)
 {
     _newsService            = newsService;
     _languageService        = languageService;
     _dateTimeHelper         = dateTimeHelper;
     _customerContentService = customerContentService;
     _localizedEntityService = localizedEntityService;
     _urlRecordService       = urlRecordService;
     _storeService           = storeService;
     _storeMappingService    = storeMappingService;
     _customerService        = customerService;
     _adminAreaSettings      = adminAreaSettings;
 }
コード例 #52
0
 public GetShippingAddressHandler(
     IShippingService shippingService,
     IPickupPointService pickupPointService,
     ITaxService taxService,
     ICurrencyService currencyService,
     IPriceFormatter priceFormatter,
     ILocalizationService localizationService,
     ICountryService countryService,
     IStoreMappingService storeMappingService,
     IMediator mediator,
     ShippingSettings shippingSettings)
 {
     _shippingService     = shippingService;
     _pickupPointService  = pickupPointService;
     _taxService          = taxService;
     _currencyService     = currencyService;
     _priceFormatter      = priceFormatter;
     _localizationService = localizationService;
     _countryService      = countryService;
     _storeMappingService = storeMappingService;
     _mediator            = mediator;
     _shippingSettings    = shippingSettings;
 }
コード例 #53
0
 public LanguageController(
     ILanguageService languageService,
     IStoreMappingService storeMappingService,
     IGenericAttributeService genericAttributeService,
     AdminAreaSettings adminAreaSettings,
     IPluginFinder pluginFinder,
     PluginMediator pluginMediator,
     ICountryService countryService,
     ICommonServices services,
     IDateTimeHelper dateTimeHelper,
     IAsyncState asyncState)
 {
     _languageService         = languageService;
     _storeMappingService     = storeMappingService;
     _genericAttributeService = genericAttributeService;
     _adminAreaSettings       = adminAreaSettings;
     _pluginFinder            = pluginFinder;
     _pluginMediator          = pluginMediator;
     _countryService          = countryService;
     _services       = services;
     _dateTimeHelper = dateTimeHelper;
     _asyncState     = asyncState;
 }
コード例 #54
0
 public CategoriesController(ICategoryApiService categoryApiService,
                             IJsonFieldsSerializer jsonFieldsSerializer,
                             ICategoryService categoryService,
                             IUrlRecordService urlRecordService,
                             ICustomerActivityService customerActivityService,
                             ILocalizationService localizationService,
                             IPictureService pictureService,
                             IStoreMappingService storeMappingService,
                             IStoreService storeService,
                             IDiscountService discountService,
                             IAclService aclService,
                             ICustomerService customerService,
                             IFactory <Category> factory,
                             IDTOHelper dtoHelper,
                             ILocalizedEntityService localizedEntityService) : base(jsonFieldsSerializer, aclService, customerService, storeMappingService, storeService, discountService, customerActivityService, localizationService, pictureService)
 {
     _categoryApiService     = categoryApiService;
     _categoryService        = categoryService;
     _urlRecordService       = urlRecordService;
     _factory                = factory;
     _dtoHelper              = dtoHelper;
     _localizedEntityService = localizedEntityService;
 }
コード例 #55
0
ファイル: ProductController.cs プロジェクト: Excalib88/Lepika
 public ProductController(
     IProductService productService,
     IWorkContext workContext,
     IStoreContext storeContext,
     ILocalizationService localizationService,
     IRecentlyViewedProductsService recentlyViewedProductsService,
     IShoppingCartService shoppingCartService,
     ICompareProductsService compareProductsService,
     IAclService aclService,
     IStoreMappingService storeMappingService,
     IPermissionService permissionService,
     ICustomerActivityService customerActivityService,
     ICustomerActionEventService customerActionEventService,
     IMediator mediator,
     CatalogSettings catalogSettings,
     ShoppingCartSettings shoppingCartSettings,
     CaptchaSettings captchaSettings, IImportService importService, IRepository <Product> productRepository)
 {
     _productService                = productService;
     _workContext                   = workContext;
     _storeContext                  = storeContext;
     _localizationService           = localizationService;
     _recentlyViewedProductsService = recentlyViewedProductsService;
     _shoppingCartService           = shoppingCartService;
     _compareProductsService        = compareProductsService;
     _aclService                 = aclService;
     _storeMappingService        = storeMappingService;
     _permissionService          = permissionService;
     _customerActivityService    = customerActivityService;
     _customerActionEventService = customerActionEventService;
     _mediator             = mediator;
     _catalogSettings      = catalogSettings;
     _shoppingCartSettings = shoppingCartSettings;
     _captchaSettings      = captchaSettings;
     _importService        = importService;
     _productRepository    = productRepository;
 }
コード例 #56
0
 public ManufacturerController(
     IManufacturerService manufacturerService,
     IManufacturerTemplateService manufacturerTemplateService,
     IProductService productService,
     IStoreService storeService,
     IStoreMappingService storeMappingService,
     IAclService aclService,
     IUrlRecordService urlRecordService,
     IPictureService pictureService,
     ILanguageService languageService,
     ILocalizationService localizationService,
     ILocalizedEntityService localizedEntityService,
     IWorkContext workContext,
     ICustomerActivityService customerActivityService,
     IDiscountService discountService,
     IDateTimeHelper dateTimeHelper,
     AdminAreaSettings adminAreaSettings,
     CatalogSettings catalogSettings)
 {
     _manufacturerTemplateService = manufacturerTemplateService;
     _manufacturerService         = manufacturerService;
     _productService          = productService;
     _storeService            = storeService;
     _storeMappingService     = storeMappingService;
     _aclService              = aclService;
     _urlRecordService        = urlRecordService;
     _pictureService          = pictureService;
     _languageService         = languageService;
     _localizationService     = localizationService;
     _localizedEntityService  = localizedEntityService;
     _workContext             = workContext;
     _customerActivityService = customerActivityService;
     _discountService         = discountService;
     _dateTimeHelper          = dateTimeHelper;
     _adminAreaSettings       = adminAreaSettings;
     _catalogSettings         = catalogSettings;
 }
コード例 #57
0
 public CategoryService(CatalogSettings catalogSettings,
                        CommonSettings commonSettings,
                        IAclService aclService,
                        ICacheManager cacheManager,
                        IDataProvider dataProvider,
                        IDbContext dbContext,
                        IEventPublisher eventPublisher,
                        ILocalizationService localizationService,
                        IRepository <AclRecord> aclRepository,
                        IRepository <Category> categoryRepository,
                        IRepository <Product> productRepository,
                        IRepository <ProductCategory> productCategoryRepository,
                        IRepository <StoreMapping> storeMappingRepository,
                        IStaticCacheManager staticCacheManager,
                        IStoreContext storeContext,
                        IStoreMappingService storeMappingService,
                        IWorkContext workContext)
 {
     this._catalogSettings           = catalogSettings;
     this._commonSettings            = commonSettings;
     this._aclService                = aclService;
     this._cacheManager              = cacheManager;
     this._dataProvider              = dataProvider;
     this._dbContext                 = dbContext;
     this._eventPublisher            = eventPublisher;
     this._localizationService       = localizationService;
     this._aclRepository             = aclRepository;
     this._categoryRepository        = categoryRepository;
     this._productRepository         = productRepository;
     this._productCategoryRepository = productCategoryRepository;
     this._storeMappingRepository    = storeMappingRepository;
     this._staticCacheManager        = staticCacheManager;
     this._storeContext              = storeContext;
     this._storeMappingService       = storeMappingService;
     this._workContext               = workContext;
     this._entityName                = typeof(Category).Name;
 }
コード例 #58
0
 public ProductsController(IProductApiService productApiService,
                           CatalogSettings catalogSettings,
                           IOrderReportService orderReportService,
                           IStoreContext storeContext,
                           IJsonFieldsSerializer jsonFieldsSerializer,
                           IProductService productService,
                           IUrlRecordService urlRecordService,
                           ICustomerActivityService customerActivityService,
                           ILocalizationService localizationService,
                           IFactory <Product> factory,
                           IAclService aclService,
                           IStoreMappingService storeMappingService,
                           IStoreService storeService,
                           ICustomerService customerService,
                           IDiscountService discountService,
                           IPictureService pictureService,
                           IManufacturerService manufacturerService,
                           IProductTagService productTagService,
                           IProductAttributeService productAttributeService,
                           ILogger logger,
                           IDTOHelper dtoHelper,
                           IHostEnvironment hostEnvironment) : base(jsonFieldsSerializer, aclService, customerService, storeMappingService, storeService, discountService, customerActivityService, localizationService, pictureService)
 {
     _productApiService       = productApiService;
     _factory                 = factory;
     _catalogSettings         = catalogSettings;
     _storeContext            = storeContext;
     _orderReportService      = orderReportService;
     _manufacturerService     = manufacturerService;
     _productTagService       = productTagService;
     _urlRecordService        = urlRecordService;
     _productService          = productService;
     _productAttributeService = productAttributeService;
     _logger          = logger;
     _dtoHelper       = dtoHelper;
     _hostEnvironment = hostEnvironment;
 }
コード例 #59
0
        public NewsController(INewsService newsService,
                              IWorkContext workContext,
                              IStoreContext storeContext,
                              IPictureService pictureService,
                              ILocalizationService localizationService,
                              IDateTimeHelper dateTimeHelper,
                              IWorkflowMessageService workflowMessageService,
                              IWebHelper webHelper,
                              ICacheManager cacheManager,
                              ICustomerActivityService customerActivityService,
                              IStoreMappingService storeMappingService,
                              IPermissionService permissionService,
                              MediaSettings mediaSettings,
                              NewsSettings newsSettings,
                              LocalizationSettings localizationSettings,
                              CustomerSettings customerSettings,
                              CaptchaSettings captchaSettings)
        {
            this._newsService            = newsService;
            this._workContext            = workContext;
            this._storeContext           = storeContext;
            this._pictureService         = pictureService;
            this._localizationService    = localizationService;
            this._dateTimeHelper         = dateTimeHelper;
            this._workflowMessageService = workflowMessageService;
            this._webHelper               = webHelper;
            this._cacheManager            = cacheManager;
            this._customerActivityService = customerActivityService;
            this._storeMappingService     = storeMappingService;
            this._permissionService       = permissionService;

            this._mediaSettings        = mediaSettings;
            this._newsSettings         = newsSettings;
            this._localizationSettings = localizationSettings;
            this._customerSettings     = customerSettings;
            this._captchaSettings      = captchaSettings;
        }
コード例 #60
0
 public CatalogController(
     ICategoryService categoryService,
     IManufacturerService manufacturerService,
     IProductService productService,
     ICategoryTemplateService categoryTemplateService,
     IManufacturerTemplateService manufacturerTemplateService,
     IOrderReportService orderReportService,
     IProductTagService productTagService,
     IRecentlyViewedProductsService recentlyViewedProductsService,
     ICompareProductsService compareProductsService,
     IGenericAttributeService genericAttributeService,
     IAclService aclService,
     IStoreMappingService storeMappingService,
     ICatalogSearchService catalogSearchService,
     MediaSettings mediaSettings,
     CatalogSettings catalogSettings,
     CatalogHelper helper,
     IBreadcrumb breadcrumb)
 {
     _categoryService               = categoryService;
     _manufacturerService           = manufacturerService;
     _productService                = productService;
     _categoryTemplateService       = categoryTemplateService;
     _manufacturerTemplateService   = manufacturerTemplateService;
     _orderReportService            = orderReportService;
     _productTagService             = productTagService;
     _recentlyViewedProductsService = recentlyViewedProductsService;
     _compareProductsService        = compareProductsService;
     _genericAttributeService       = genericAttributeService;
     _aclService           = aclService;
     _storeMappingService  = storeMappingService;
     _catalogSearchService = catalogSearchService;
     _mediaSettings        = mediaSettings;
     _catalogSettings      = catalogSettings;
     _helper     = helper;
     _breadcrumb = breadcrumb;
 }