示例#1
0
        public CategoryBrowsingViewService(ISearchRepository searchRepository,
                                           IDamProvider damProvider,
                                           ILocalizationProvider localizationProvider,
                                           ISearchUrlProvider searchUrlProvider,
                                           ICategoryRepository categoryRepository,
                                           ICategoryBrowsingUrlProvider categoryBrowsingUrlProvider,
                                           IFacetFactory facetFactory,
                                           ISelectedFacetFactory selectedFacetFactory,
                                           IComposerContext composerContext,
                                           IFulfillmentContext fulfillmentContext,
                                           IProductSearchViewModelFactory productSearchViewModelFactory)

            : base(searchRepository,
                   damProvider,
                   localizationProvider,
                   searchUrlProvider,
                   facetFactory,
                   selectedFacetFactory,
                   composerContext,
                   productSearchViewModelFactory,
                   categoryRepository)

        {
            CategoryRepository          = categoryRepository ?? throw new ArgumentNullException(nameof(categoryRepository));
            CategoryBrowsingUrlProvider = categoryBrowsingUrlProvider ?? throw new ArgumentNullException(nameof(categoryBrowsingUrlProvider));
            FulfillmentContext          = fulfillmentContext ?? throw new ArgumentNullException(nameof(fulfillmentContext));
        }
 public BaseSearchCriteriaProvider(IWebsiteContext websiteContext, IInventoryLocationProvider inventoryLocationProvider, IComposerContext composerContext, IFulfillmentContext fulfillmentContext)
 {
     WebsiteContext            = websiteContext ?? throw new ArgumentNullException(nameof(websiteContext));;
     InventoryLocationProvider = inventoryLocationProvider ?? throw new ArgumentNullException(nameof(inventoryLocationProvider));
     ComposerContext           = composerContext ?? throw new ArgumentNullException(nameof(composerContext));
     FulfillmentContext        = fulfillmentContext ?? throw new ArgumentNullException(nameof(fulfillmentContext));
 }
 public RelatedProductViewServiceProxy(IProductRepository productRepository,
                                       IRelationshipRepository relationshipRepository,
                                       IDamProvider damProvider, IProductUrlProvider
                                       productUrlProvider, IViewModelMapper viewModelMapper,
                                       ILocalizationProvider localizationProvider,
                                       IInventoryLocationProvider inventoryLocationProvider,
                                       IRecurringOrdersSettings recurringOrdersSettings,
                                       IFulfillmentContext fulfillmentContext) : base(productRepository, relationshipRepository, damProvider, productUrlProvider, viewModelMapper, localizationProvider, inventoryLocationProvider, recurringOrdersSettings, fulfillmentContext)
 {
 }
示例#4
0
 public ProductPriceViewService(IProductRepository productRepository,
                                ILocalizationProvider localizationProvider,
                                IViewModelMapper viewModelMapper,
                                IScopeViewService scopeViewService,
                                IFulfillmentContext fulfillmentContext,
                                ICurrencyProvider currencyProvider)
 {
     ProductRepository    = productRepository ?? throw new ArgumentNullException(nameof(productRepository));
     LocalizationProvider = localizationProvider ?? throw new ArgumentNullException(nameof(localizationProvider));
     ViewModelMapper      = viewModelMapper ?? throw new ArgumentNullException(nameof(viewModelMapper));
     ScopeViewService     = scopeViewService ?? throw new ArgumentNullException(nameof(scopeViewService));
     FulfillmentContext   = fulfillmentContext ?? throw new ArgumentNullException(nameof(fulfillmentContext));
     CurrencyProvider     = currencyProvider ?? throw new ArgumentNullException(nameof(currencyProvider));
 }
示例#5
0
 protected BaseProductViewService(
     IProductRepository productRepository,
     IDamProvider damProvider,
     IProductUrlProvider productUrlProvider,
     IViewModelMapper viewModelMapper,
     ILocalizationProvider localizationProvider,
     IRelationshipRepository relationshipRepository,
     IInventoryLocationProvider inventoryLocationProvider,
     IRecurringOrdersSettings recurringOrdersSettings,
     IFulfillmentContext fulfillmentContext)
 {
     ProductRepository         = productRepository ?? throw new ArgumentNullException(nameof(productRepository));
     ViewModelMapper           = viewModelMapper ?? throw new ArgumentNullException(nameof(viewModelMapper));
     DamProvider               = damProvider ?? throw new ArgumentNullException(nameof(damProvider));
     LocalizationProvider      = localizationProvider ?? throw new ArgumentNullException(nameof(localizationProvider));
     ProductUrlProvider        = productUrlProvider ?? throw new ArgumentNullException(nameof(productUrlProvider));
     RelationshipRepository    = relationshipRepository ?? throw new ArgumentNullException(nameof(relationshipRepository));
     InventoryLocationProvider = inventoryLocationProvider ?? throw new ArgumentNullException(nameof(inventoryLocationProvider));
     RecurringOrdersSettings   = recurringOrdersSettings ?? throw new ArgumentNullException(nameof(recurringOrdersSettings));
     FulfillmentContext        = fulfillmentContext ?? throw new ArgumentNullException(nameof(fulfillmentContext));
 }