Exemple #1
0
 public ProductSettingsViewService(
     IProductSettingsRepository productSettingsRepository,
     IViewModelMapper viewModelMapper)
 {
     ProductSettingsRepository = productSettingsRepository;
     ViewModelMapper           = viewModelMapper;
 }
 public SearchQueryViewService(
     ICategoryRepository categoryRepository,
     ISearchRepository searchRepository,
     IDamProvider damProvider,
     ILocalizationProvider localizationProvider,
     ISearchUrlProvider searchUrlProvider,
     IFacetFactory facetFactory,
     ISelectedFacetFactory selectedFacetFactory,
     IComposerContext composerContext,
     ISearchQueryRepository searchQueryRepository,
     ISearchQueryUrlProvider searchQueryUrlProvider,
     IProductSettingsRepository productSettingsRepository,
     Repositories.IInventoryRepository inventoryRepository,
     IProductSearchViewModelFactory productSearchViewModelFactory)
     : base(
         searchRepository,
         damProvider,
         localizationProvider,
         searchUrlProvider,
         facetFactory,
         selectedFacetFactory,
         composerContext,
         productSearchViewModelFactory,
         categoryRepository)
 {
     SearchQueryRepository     = searchQueryRepository ?? throw new ArgumentNullException(nameof(searchQueryRepository));
     SearchQueryUrlProvider    = searchQueryUrlProvider ?? throw new ArgumentNullException(nameof(searchQueryUrlProvider));
     ProductSettingsRepository = productSettingsRepository;
     InventoryRepository       = inventoryRepository;
 }
Exemple #3
0
 public ProductSettingsDomainModelHandler(
     IProductSettingsRepository previewRefsRepository,
     ISqlServerMasterDbContext dbContext,
     IMapper mapper)
 {
     _productSettingsRepository = previewRefsRepository;
     _dbContext = dbContext;
     _mapper    = mapper;
 }
Exemple #4
0
        public SearchQueryViewService(
            ISearchRepository searchRepository,
            IViewModelMapper viewModelMapper,
            IDamProvider damProvider,
            ILocalizationProvider localizationProvider,
            IProductUrlProvider productUrlProvider,
            ISearchUrlProvider searchUrlProvider,
            IFacetFactory facetFactory,
            ISelectedFacetFactory selectedFacetFactory,
            IPriceProvider priceProvider,
            IComposerContext composerContext,
            IProductSettingsViewService productSettings,
            IScopeViewService scopeViewService,
            ISearchQueryRepository searchQueryRepository,
            ISearchQueryUrlProvider searchQueryUrlProvider,
            IProductSettingsRepository productSettingsRepository,
            Repositories.IInventoryRepository inventoryRepository,
            IRecurringOrdersSettings recurringOrdersSettings
            )

            : base(
                searchRepository,
                viewModelMapper,
                damProvider,
                localizationProvider,
                productUrlProvider,
                searchUrlProvider,
                facetFactory,
                selectedFacetFactory,
                priceProvider,
                composerContext,
                productSettings,
                scopeViewService,
                recurringOrdersSettings)
        {
            if (searchQueryRepository == null)
            {
                throw new ArgumentNullException("searchQueryRepository");
            }
            if (searchQueryUrlProvider == null)
            {
                throw new ArgumentNullException("searchQuerySearchRepository");
            }

            SearchQueryRepository     = searchQueryRepository;
            SearchQueryUrlProvider    = searchQueryUrlProvider;
            ProductSettingsRepository = productSettingsRepository;
            InventoryRepository       = inventoryRepository;
        }