Пример #1
0
        public WgShopController(IShopsService shopService, ISkuProductsService skuProductsService, ICacheProvider <ProductCategory> productCategoryCache,
                                IProductRecentlyViewedService productRecentlyViewedService, ISkuAttributesService skuAttributesService,
                                ISkuAttributeOptionsService skuAttributeOptionsService, IProductCategoriesService productCategoriesService,
                                IProductsService productsService, ISkuGroupsService skuGroupsService, ISkuVariantsService skuVariantsService)
            : base(shopService, skuProductsService, productCategoryCache, productRecentlyViewedService, skuAttributesService,
                   skuAttributeOptionsService, productCategoriesService, productsService, skuGroupsService, skuVariantsService)
        {
            if (shopService == null)
            {
                throw new ArgumentNullException("shopService");
            }
            if (skuProductsService == null)
            {
                throw new ArgumentNullException("skuProductsService");
            }
            if (productCategoryCache == null)
            {
                throw new ArgumentNullException("productCategoryCache");
            }
            if (productRecentlyViewedService == null)
            {
                throw new ArgumentNullException("productRecentlyViewedService");
            }
            if (skuAttributesService == null)
            {
                throw new ArgumentNullException("skuAttributesService");
            }
            if (skuAttributeOptionsService == null)
            {
                throw new ArgumentNullException("skuAttributeOptionsService");
            }
            if (productCategoriesService == null)
            {
                throw new ArgumentNullException("productCategoriesService");
            }
            if (productsService == null)
            {
                throw new ArgumentNullException("productsService");
            }
            if (skuGroupsService == null)
            {
                throw new ArgumentNullException("skuGroupsService");
            }
            if (skuVariantsService == null)
            {
                throw new ArgumentNullException("skuVariantsService");
            }

            _shopsService                 = shopService;
            _skuProductsService           = skuProductsService;
            _productCategoryCache         = productCategoryCache;
            _productRecentlyViewedService = productRecentlyViewedService;
            _skuAttributeOptionsService   = skuAttributeOptionsService;
            _skuAttributeService          = skuAttributesService;
            _productCategoriesService     = productCategoriesService;
            _productsService              = productsService;
            _skuGroupsService             = skuGroupsService;
            _skuVariantsService           = skuVariantsService;
        }
Пример #2
0
 public WgShopSearchController(
     ISkuProductsService skuProductsService
     , ISkuAttributesService skuAttributeService
     , IProductCategoriesService productCategoriesService
     , ISkuAttributeOptionsService skuAttributeOptionsService
     , ICustomSearchTermService customSearchTermService)
 {
     _skuProductsService         = skuProductsService;
     _skuAttributeService        = skuAttributeService;
     _productCategoriesService   = productCategoriesService;
     _skuAttributeOptionsService = skuAttributeOptionsService;
     _customSearchTermService    = customSearchTermService;
 }
Пример #3
0
        public WgShopController(IShopsService shopService, ISkuProductsService skuProductsService,
                                ICacheProvider <ProductCategory> productCategoryCache,
                                IProductRecentlyViewedService productRecentlyViewedService, ISkuAttributesService skuAttributesService,
                                ISkuAttributeOptionsService skuAttributeOptionsService, IProductCategoriesService productCategoriesService,
                                IProductsService productsService, ISkuGroupsService skuGroupsService, ISkuVariantsService skuVariantsService,
                                ISkuColourService skuColourService, ICustomSearchTermService customSearchTermService,
                                IDeliveryChargeService deliveryChargeService, ISkuService skuService, ISkuPricesService skuPricesService)
            : base(
                shopService, skuProductsService, productCategoryCache, productRecentlyViewedService,
                skuAttributesService,
                skuAttributeOptionsService, productCategoriesService, productsService, skuGroupsService,
                skuVariantsService,
                skuColourService, deliveryChargeService, skuService, skuPricesService)
        {
            _customSearchTermService = customSearchTermService;

            _b2bCheckoutService = new B2BCheckoutService(
                GetService <ITransactionService>(),
                CommerceContext, GetService <IShopsService>(),
                VisitorTrackingContext,
                GetService <ICurrencyService>(),
                ColonyContext);
        }
Пример #4
0
 public MertextStockValidationService(ISkuProductsService skuProductsService,
                                      ISkuBundlesService skuBundlesService, ISitesService sitesService)
 {
     _skuProductsService = skuProductsService;
     _sitesService       = sitesService;
 }