Пример #1
0
 public ProductAttributeFormatter(
     //IWorkContext workContext,
     ProductAttributeDomainService productAttributeService,
     IProductAttributeParser productAttributeParser,
     CurrencyDomainService currencyService,
     //ILocalizationService localizationService,
     TaxDomainService taxService,
     IPriceFormatter priceFormatter,
     //IDownloadService downloadService,
     //IWebHelper webHelper,
     PriceCalculationDomainService priceCalculationService
     //ShoppingCartSettings shoppingCartSettings
     , IStoreContext storeContext
     , SettingDomainService settingDomainService
     )
 {
     //this._workContext = workContext;
     this._productAttributeService = productAttributeService;
     this._productAttributeParser  = productAttributeParser;
     this._currencyService         = currencyService;
     //this._localizationService = localizationService;
     this._taxService     = taxService;
     this._priceFormatter = priceFormatter;
     //this._downloadService = downloadService;
     //this._webHelper = webHelper;
     this._priceCalculationService = priceCalculationService;
     //this._shoppingCartSettings = shoppingCartSettings;
     _storeContext         = storeContext;
     _settingDomainService = settingDomainService;
 }
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="cacheManager">Cache manager</param>
 /// <param name="manufacturerRepository">Category repository</param>
 /// <param name="productManufacturerRepository">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="catalogSettings">Catalog settings</param>
 /// <param name="eventPublisher">Event published</param>
 public ManufacturerDomainService(ICacheManager cacheManager,
                                  IManufacturerRepository manufacturerRepository,
                                  IProductManufacturerRepository productManufacturerRepository,
                                  IProductRepository productRepository,
                                  //IRepository<AclRecord> aclRepository,
                                  IStoreMappingRepository storeMappingRepository,
                                  //IWorkContext workContext,
                                  IStoreContext storeContext
                                  //,CatalogSettings catalogSettings
                                  // ,IEventPublisher eventPublisher
                                  , SettingDomainService settingDomainService
                                  )
 {
     this._cacheManager                  = cacheManager;
     this._manufacturerRepository        = manufacturerRepository;
     this._productManufacturerRepository = productManufacturerRepository;
     this._productRepository             = productRepository;
     //this._aclRepository = aclRepository;
     this._storeMappingRepository = storeMappingRepository;
     //this._workContext = workContext;
     this._storeContext = storeContext;
     //this._catalogSettings = catalogSettings;
     //this._eventPublisher = eventPublisher;
     _settingDomainService = settingDomainService;
 }
Пример #3
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>
 /// <param name="storeMappingService">Store mapping service</param>
 /// <param name="aclService">ACL service</param>
 /// <param name="catalogSettings">Catalog settings</param>
 public CategoryDomainService(ICacheManager cacheManager,
                              ICategoryRepository categoryRepository,
                              IProductCategoryRepository productCategoryRepository,
                              IProductRepository productRepository,
                              //IRepository<AclRecord> aclRepository,
                              IStoreMappingRepository storeMappingRepository,
                              //IWorkContext workContext,
                              IStoreContext storeContext,
                              //IEventPublisher eventPublisher,
                              StoreMappingDomainService storeMappingService,
                              //IAclService aclService,
                              SettingDomainService settingDomainService)
 {
     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._settingDomainService = settingDomainService;
 }
Пример #4
0
        public PriceCalculationDomainService(
            //IWorkContext workContext,
            IStoreContext storeContext,
            DiscountDomainService discountService,
            CategoryDomainService categoryService,
            ManufacturerDomainService manufacturerService,
            IProductAttributeParser productAttributeParser,
            ProductDomainService productService,
            ICacheManager cacheManager
            , SettingDomainService settingDomainService
            //ShoppingCartSettings shoppingCartSettings,
            //CatalogSettings catalogSettings
            )
        {
            //this._workContext = workContext;
            this._storeContext           = storeContext;
            this._discountService        = discountService;
            this._categoryService        = categoryService;
            this._manufacturerService    = manufacturerService;
            this._productAttributeParser = productAttributeParser;
            this._productService         = productService;
            this._cacheManager           = cacheManager;

            //this._shoppingCartSettings = shoppingCartSettings;
            //this._catalogSettings = catalogSettings;
            _settingDomainService = settingDomainService;
        }
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="cacheManager">Cache manager</param>
 /// <param name="storeContext">Store context</param>
 /// <param name="storeMappingRepository">Store mapping repository</param>
 /// <param name="catalogSettings">Catalog settings</param>
 /// <param name="eventPublisher">Event publisher</param>
 public StoreMappingDomainService(ICacheManager cacheManager,
                                  IStoreContext storeContext,
                                  IStoreMappingRepository storeMappingRepository,
                                  //CatalogSettings catalogSettings
                                  //,IEventPublisher eventPublisher
                                  SettingDomainService settingDomainService
                                  )
 {
     this._cacheManager           = cacheManager;
     this._storeContext           = storeContext;
     this._storeMappingRepository = storeMappingRepository;
     //this._catalogSettings = catalogSettings;
     //this._eventPublisher = eventPublisher;
     _settingDomainService = settingDomainService;
 }
Пример #6
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="cacheManager">Cache manager</param>
 /// <param name="countryRepository">Country repository</param>
 /// <param name="storeMappingRepository">Store mapping repository</param>
 /// <param name="storeContext">Store context</param>
 /// <param name="catalogSettings">Catalog settings</param>
 /// <param name="eventPublisher">Event published</param>
 public CountryDomainService(ICacheManager cacheManager,
                             ICountryRepository countryRepository,
                             IStoreMappingRepository storeMappingRepository,
                             IStoreContext storeContext,
                             SettingDomainService settingDomainService
                             //,IEventPublisher eventPublisher
                             )
 {
     this._cacheManager           = cacheManager;
     this._countryRepository      = countryRepository;
     this._storeMappingRepository = storeMappingRepository;
     this._storeContext           = storeContext;
     //this._catalogSettings = catalogSettings;
     _settingDomainService = settingDomainService;
     //this._eventPublisher = eventPublisher;
 }
Пример #7
0
        //private readonly LocalizationSettings _localizationSettings;
        //private readonly IEventPublisher _eventPublisher;

        #endregion

        #region Ctor

        /// <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 LanguageDomainService(ICacheManager cacheManager
                                     , ILanguageRepository languageRepository
                                     , StoreMappingDomainService storeMappingService
                                     , SettingDomainService settingService
                                     , IStoreContext storeContext
                                     //,LocalizationSettings localizationSettings
                                     //IEventPublisher eventPublisher
                                     )
        {
            this._cacheManager        = cacheManager;
            this._languageRepository  = languageRepository;
            this._storeMappingService = storeMappingService;
            this._settingService      = settingService;
            _storeContext             = storeContext;
            //this._localizationSettings = localizationSettings;
            //this._eventPublisher = eventPublisher;
        }
Пример #8
0
 public PriceFormatter(
     //IWorkContext workContext,
     CurrencyDomainService currencyService
     //ILocalizationService localizationService,
     //TaxSettings taxSettings,
     //CurrencySettings currencySettings
     , IStoreContext storeContext
     , SettingDomainService settingDomainService
     )
 {
     //this._workContext = workContext;
     this._currencyService = currencyService;
     //this._localizationService = localizationService;
     //this._taxSettings = taxSettings;
     //this._currencySettings = currencySettings;
     this._storeContext    = storeContext;
     _settingDomainService = settingDomainService;
 }
Пример #9
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 CurrencyDomainService(ICacheManager cacheManager,
                              ICurrencyRepository currencyRepository,
                              StoreMappingDomainService storeMappingService,
                              IStoreContext storeContext,
                              SettingDomainService settingDomainService
                              //CurrencySettings currencySettings
                              //IPluginFinder pluginFinder,
                              //IEventPublisher eventPublisher
                              )
 {
     this._cacheManager        = cacheManager;
     this._currencyRepository  = currencyRepository;
     this._storeMappingService = storeMappingService;
     this._storeContext        = storeContext;
     _settingDomainService     = settingDomainService;
     //this._currencySettings = currencySettings;
     //this._pluginFinder = pluginFinder;
     //this._eventPublisher = eventPublisher;
 }
Пример #10
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="cacheManager">Cache manager</param>
 /// <param name="addressRepository">Address repository</param>
 /// <param name="countryService">Country service</param>
 /// <param name="stateProvinceService">State/province service</param>
 /// <param name="addressAttributeService">Address attribute service</param>
 /// <param name="eventPublisher">Event publisher</param>
 /// <param name="addressSettings">Address settings</param>
 public AddressDomainService(ICacheManager cacheManager,
                             IAddressRepository addressRepository,
                             CountryDomainService countryService,
                             StateProvinceDomainService stateProvinceService,
                             AddressAttributeDomainService addressAttributeService,
                             //IEventPublisher eventPublisher,
                             IStoreContext storeContext,
                             SettingDomainService settingDomainService)
 {
     this._cacheManager            = cacheManager;
     this._addressRepository       = addressRepository;
     this._countryService          = countryService;
     this._stateProvinceService    = stateProvinceService;
     this._addressAttributeService = addressAttributeService;
     //this._eventPublisher = eventPublisher;
     //this._addressSettings = addressSettings;
     this._storeContext    = storeContext;
     _settingDomainService = settingDomainService;
 }
Пример #11
0
        /// <summary>
        /// Ctor
        /// </summary>
        /// <param name="productTagRepository">Product tag repository</param>
        /// <param name="dataProvider">Data provider</param>
        /// <param name="dbContext">Database Context</param>
        /// <param name="commonSettings">Common settings</param>
        /// <param name="cacheManager">Cache manager</param>
        /// <param name="eventPublisher">Event published</param>
        public ProductTagDomainService(IRepository <ProductTag> productTagRepository,
                                       //IDataProvider dataProvider,
                                       //IDbContext dbContext,
                                       //CommonSettings commonSettings,
                                       ICacheManager cacheManager
                                       //,IEventPublisher eventPublisher
                                       , IStoreContext storeContext
                                       , SettingDomainService settingDomainService)
        {
            this._productTagRepository = productTagRepository;
            //this._dataProvider = dataProvider;
            //this._dbContext = dbContext;
            //this._commonSettings = commonSettings;
            this._cacheManager = cacheManager;
            //this._eventPublisher = eventPublisher;

            this._storeContext    = storeContext;
            _settingDomainService = settingDomainService;
        }
Пример #12
0
        public ProductAppService(ProductDomainService productDomainService
                                 , ShippingDomainServie shippingDomainServie
                                 , VendorDomainService vendorDomainService
                                 , SettingDomainService settingDomainService
                                 , ProductTemplateDomainService productTemplateService
                                 , PictureDomainService pictureDomainService
                                 , CurrencyDomainService currencyDomainService
                                 , TaxDomainService taxDomainService
                                 , PriceCalculationDomainService priceCalculationDomainService
                                 , IPriceFormatter priceFormatter
                                 , IProductAttributeParser productAttributeParser
                                 , ProductAttributeDomainService productAttributeDomainService
                                 , DownloadDomainService downloadDomainService
                                 , ManufacturerDomainService manufacturerDomainService
                                 , SpecificationAttributeDomainService specificationAttributeDomainService

                                 , IVendorTest vendorTest
                                 , IStoreContext storeContext
                                 , ICacheManager cacheManager)
        {
            _productDomainService          = productDomainService;
            _shippingDomainServie          = shippingDomainServie;
            _vendorDomainService           = vendorDomainService;
            _settingDomainService          = settingDomainService;
            _productTemplateService        = productTemplateService;
            _pictureDomainService          = pictureDomainService;
            _currencyDomainService         = currencyDomainService;
            _taxDomainService              = taxDomainService;
            _priceCalculationDomainService = priceCalculationDomainService;
            _priceFormatter                      = priceFormatter;
            _productAttributeParser              = productAttributeParser;
            _productAttributeDomainService       = productAttributeDomainService;
            _downloadDomainService               = downloadDomainService;
            _manufacturerDomainService           = manufacturerDomainService;
            _specificationAttributeDomainService = specificationAttributeDomainService;

            _vendorTest        = vendorTest;
            _storeContext      = storeContext;
            this._cacheManager = cacheManager;

            var a = 5;
        }
Пример #13
0
        /// <summary>
        /// Ctor
        /// </summary>
        /// <param name="pictureRepository">Picture repository</param>
        /// <param name="productPictureRepository">Product picture repository</param>
        /// <param name="settingService">Setting service</param>
        /// <param name="webHelper">Web helper</param>
        /// <param name="logger">Logger</param>
        /// <param name="dbContext">Database context</param>
        /// <param name="eventPublisher">Event publisher</param>
        /// <param name="mediaSettings">Media settings</param>
        public PictureDomainService(IPictureRepository pictureRepository,
                                    IProductPictureRepository productPictureRepository,
                                    SettingDomainService settingService,
                                    IStoreContext storeContext
                                    //IWebHelper webHelper,
                                    //ILogger logger,
                                    //IDbContext dbContext,
                                    //IEventPublisher eventPublisher,
                                    //MediaSettings mediaSettings
                                    )


        {
            this._pictureRepository        = pictureRepository;
            this._productPictureRepository = productPictureRepository;
            this._settingService           = settingService;
            this._storeContext             = storeContext;
            //this._webHelper = webHelper;
            //this._logger = logger;
            //this._dbContext = dbContext;
            //this._eventPublisher = eventPublisher;
            //this._mediaSettings = mediaSettings;
        }
Пример #14
0
 /// <summary>
 ///     Ctor
 /// </summary>
 /// <param name="addressService">Address service</param>
 /// <param name="workContext">Work context</param>
 /// <param name="taxSettings">Tax settings</param>
 /// <param name="pluginFinder">Plugin finder</param>
 /// <param name="geoLookupService">GEO lookup service</param>
 /// <param name="countryService">Country service</param>
 /// <param name="customerSettings">Customer settings</param>
 /// <param name="addressSettings">Address settings</param>
 public TaxDomainService(
     IStoreContext storeContext,
     SettingDomainService settingDomainService
     , AddressDomainService addressService
     //IWorkContext workContext,
     //TaxSettings taxSettings,
     //IPluginFinder pluginFinder,
     //IGeoLookupService geoLookupService,
     , CountryDomainService countryService
     //CustomerSettings customerSettings,
     //AddressSettings addressSettings
     )
 {
     _addressService = addressService;
     //this._workContext = workContext;
     //this._taxSettings = taxSettings;
     //this._pluginFinder = pluginFinder;
     //this._geoLookupService = geoLookupService;
     _countryService = countryService;
     //this._customerSettings = customerSettings;
     //this._addressSettings = addressSettings;
     _storeContext         = storeContext;
     _settingDomainService = settingDomainService;
 }