public RecurringOrderCartsViewService(
     ICartRepository cartRepository,
     IOvertureClient overtureClient,
     IRecurringOrderCartViewModelFactory recurringOrderCartViewModelFactory,
     IImageService imageService,
     ILookupService lookupService,
     IRecurringOrdersRepository recurringOrdersRepository,
     IComposerContext composerContext,
     IAddressRepository addressRepository,
     ICouponViewService couponViewService,
     IRecurringCartUrlProvider recurringCartUrlProvider,
     IRecurringScheduleUrlProvider recurringScheduleUrlProvider,
     IRecurringOrdersSettings recurringOrdersSettings)
 {
     OvertureClient = overtureClient ?? throw new ArgumentNullException(nameof(overtureClient));
     CartRepository = cartRepository ?? throw new ArgumentNullException(nameof(cartRepository));
     RecurringOrderCartViewModelFactory = recurringOrderCartViewModelFactory ?? throw new ArgumentNullException(nameof(recurringOrderCartViewModelFactory));
     ImageService                 = imageService ?? throw new ArgumentNullException(nameof(imageService));
     LookupService                = lookupService ?? throw new ArgumentNullException(nameof(lookupService));
     RecurringOrdersRepository    = recurringOrdersRepository ?? throw new ArgumentNullException(nameof(recurringOrdersRepository));
     ComposerContext              = composerContext ?? throw new ArgumentNullException(nameof(composerContext));
     AddressRepository            = addressRepository ?? throw new ArgumentNullException(nameof(addressRepository));
     CouponViewService            = couponViewService ?? throw new ArgumentNullException(nameof(couponViewService));
     RecurringCartUrlProvider     = recurringCartUrlProvider ?? throw new ArgumentNullException(nameof(recurringCartUrlProvider));
     RecurringScheduleUrlProvider = recurringScheduleUrlProvider ?? throw new ArgumentNullException(nameof(recurringScheduleUrlProvider));
     RecurringOrdersSettings      = recurringOrdersSettings;
 }
Esempio n. 2
0
 public WishListController(
     IWishListViewService wishListViewService,
     IComposerContext composerContext)
 {
     WishListViewService = wishListViewService ?? throw new ArgumentNullException(nameof(wishListViewService));
     ComposerContext     = composerContext ?? throw new ArgumentNullException(nameof(composerContext));
 }
 protected BaseSearchViewService(
     ISearchRepository searchRepository,
     IViewModelMapper viewModelMapper,
     IDamProvider damProvider,
     ILocalizationProvider localizationProvider,
     IProductUrlProvider productUrlProvider,
     ISearchUrlProvider searchUrlProvider,
     IFacetFactory facetFactory,
     ISelectedFacetFactory selectedFacetFactory,
     IPriceProvider priceProvider,
     IComposerContext composerContext,
     IProductSettingsViewService productSettings,
     IScopeViewService scopeViewService,
     IRecurringOrdersSettings recurringOrdersSettings)
 {
     SearchRepository        = searchRepository ?? throw new ArgumentNullException(nameof(searchRepository));
     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));
     SearchUrlProvider       = searchUrlProvider ?? throw new ArgumentNullException(nameof(searchUrlProvider));
     SelectedFacetFactory    = selectedFacetFactory ?? throw new ArgumentNullException(nameof(selectedFacetFactory));
     FacetFactory            = facetFactory ?? throw new ArgumentNullException(nameof(facetFactory));
     PriceProvider           = priceProvider ?? throw new ArgumentNullException(nameof(priceProvider));
     ComposerContext         = composerContext ?? throw new ArgumentNullException(nameof(composerContext));
     ProductSettings         = productSettings ?? throw new ArgumentNullException(nameof(productSettings));
     ScopeViewService        = scopeViewService ?? throw new ArgumentNullException(nameof(scopeViewService));
     RecurringOrdersSettings = recurringOrdersSettings ?? throw new ArgumentNullException(nameof(recurringOrdersSettings));
 }
 public ContentSearchController(
     IComposerContext composerContext,
     IContentSearchViewService contentSearchViewService)
 {
     ComposerContext          = composerContext ?? throw new ArgumentNullException(nameof(composerContext));
     ContentSearchViewService = contentSearchViewService ?? throw new ArgumentNullException(nameof(contentSearchViewService));
 }
Esempio n. 5
0
 protected HeaderBaseController(
     IPageService pageService,
     IComposerContext composerContext)
 {
     PageService     = pageService ?? throw new ArgumentNullException(nameof(pageService));
     ComposerContext = composerContext ?? throw new ArgumentNullException(nameof(composerContext));
 }
 public RecurringOrderTemplateViewModelFactory(
     IOvertureClient overtureClient,
     ILocalizationProvider localizationProvider,
     IViewModelMapper viewModelMapper,
     ICountryService countryService,
     IComposerContext composerContext,
     IRecurringOrdersRepository recurringOrdersRepository,
     IAddressRepository addressRepository,
     IProductUrlProvider productUrlProvider,
     IProductPriceViewService productPriceViewService,
     IRecurringScheduleUrlProvider recurringScheduleUrlProvider,
     IRecurringOrderProgramViewModelFactory recurringOrderProgramViewModelFactory,
     IRecurringOrdersRepository recurringOrderRepository)
 {
     LocalizationProvider                  = localizationProvider ?? throw new ArgumentNullException(nameof(localizationProvider));
     ViewModelMapper                       = viewModelMapper ?? throw new ArgumentNullException(nameof(viewModelMapper));
     CountryService                        = countryService ?? throw new ArgumentNullException(nameof(countryService));
     ComposerContext                       = composerContext;
     RecurringOrdersRepository             = recurringOrdersRepository ?? throw new ArgumentNullException(nameof(recurringOrdersRepository));
     AddressRepository                     = addressRepository ?? throw new ArgumentNullException(nameof(addressRepository));
     ProductUrlProvider                    = productUrlProvider ?? throw new ArgumentNullException(nameof(productUrlProvider));
     ProductPriceViewService               = productPriceViewService ?? throw new ArgumentNullException(nameof(productPriceViewService));
     OvertureClient                        = overtureClient ?? throw new ArgumentNullException(nameof(overtureClient));
     RecurringScheduleUrlProvider          = recurringScheduleUrlProvider ?? throw new ArgumentNullException(nameof(recurringScheduleUrlProvider));
     RecurringOrderProgramViewModelFactory = recurringOrderProgramViewModelFactory ?? throw new ArgumentNullException(nameof(recurringOrderProgramViewModelFactory));
     RecurringOrderRepository              = recurringOrderRepository ?? throw new ArgumentNullException(nameof(recurringOrderRepository));
 }
Esempio n. 7
0
        protected CartBaseController(
            IComposerContext composerContext,
            ICartUrlProvider cartUrlProvider,
            IPageService pageService,
            IBreadcrumbViewService breadcrumbViewService)
        {
            if (composerContext == null)
            {
                throw new ArgumentNullException("composerContext");
            }
            if (cartUrlProvider == null)
            {
                throw new ArgumentNullException("cartUrlProvider");
            }
            if (pageService == null)
            {
                throw new ArgumentNullException("pageService");
            }
            if (breadcrumbViewService == null)
            {
                throw new ArgumentNullException("breadcrumbViewService");
            }

            ComposerContext       = composerContext;
            CartUrlProvider       = cartUrlProvider;
            PageService           = pageService;
            BreadcrumbViewService = breadcrumbViewService;
        }
 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;
 }
Esempio n. 9
0
        public CategoryBrowsingViewService(
            ISearchRepository searchRepository,
            IViewModelMapper viewModelMapper,
            IDamProvider damProvider,
            ILocalizationProvider localizationProvider,
            IProductUrlProvider productUrlProvider,
            ISearchUrlProvider searchUrlProvider,
            ICategoryRepository categoryRepository,
            ICategoryBrowsingUrlProvider categoryBrowsingUrlProvider,
            IFacetFactory facetFactory,
            ISelectedFacetFactory selectedFacetFactory,
            IPriceProvider priceProvider,
            IComposerContext composerContext,
            IProductSettingsViewService productSettings,
            IScopeViewService scopeViewService,
            IRecurringOrdersSettings recurringOrdersSettings)

            : base(
                searchRepository,
                viewModelMapper,
                damProvider,
                localizationProvider,
                productUrlProvider,
                searchUrlProvider,
                facetFactory,
                selectedFacetFactory,
                priceProvider,
                composerContext,
                productSettings,
                scopeViewService,
                recurringOrdersSettings)
        {
            CategoryRepository          = categoryRepository ?? throw new ArgumentNullException(nameof(categoryRepository));
            CategoryBrowsingUrlProvider = categoryBrowsingUrlProvider ?? throw new ArgumentNullException(nameof(categoryBrowsingUrlProvider));
        }
Esempio n. 10
0
 public OrderHistoryViewService(
     IOrderHistoryViewModelFactory orderHistoryViewModelFactory,
     IOrderRepository orderRepository,
     IOrderUrlProvider orderUrlProvider,
     ILookupService lookupService,
     IOrderDetailsViewModelFactory orderDetailsViewModelFactory,
     IImageService imageService,
     IShippingTrackingProviderFactory shippingTrackingProviderFactory,
     ICustomerRepository customerRepository,
     IComposerJsonSerializer composerJsonSerializer,
     ILineItemViewModelFactory lineItemViewModelFactory,
     ICartRepository cartRepository,
     IComposerContext composerContext,
     ICartUrlProvider cartUrlProvider,
     IEditingOrderProvider editingOrderProvider,
     ICheckoutService checkoutService)
 {
     OrderHistoryViewModelFactory = orderHistoryViewModelFactory ?? throw new ArgumentNullException(nameof(orderHistoryViewModelFactory));
     OrderUrlProvider             = orderUrlProvider ?? throw new ArgumentNullException(nameof(orderUrlProvider));
     LookupService   = lookupService ?? throw new ArgumentNullException(nameof(lookupService));
     OrderRepository = orderRepository ?? throw new ArgumentNullException(nameof(orderRepository));
     OrderDetailsViewModelFactory = orderDetailsViewModelFactory ?? throw new ArgumentNullException(nameof(orderDetailsViewModelFactory));
     ImageService = imageService ?? throw new ArgumentNullException(nameof(imageService));
     ShippingTrackingProviderFactory = shippingTrackingProviderFactory ?? throw new ArgumentNullException(nameof(shippingTrackingProviderFactory));
     CustomerRepository       = customerRepository ?? throw new ArgumentNullException(nameof(customerRepository));
     ComposerJsonSerializer   = composerJsonSerializer ?? throw new ArgumentNullException(nameof(composerJsonSerializer));
     LineItemViewModelFactory = lineItemViewModelFactory ?? throw new ArgumentNullException(nameof(lineItemViewModelFactory));
     CartRepository           = cartRepository ?? throw new ArgumentNullException(nameof(cartRepository));
     ComposerContext          = composerContext ?? throw new ArgumentNullException(nameof(composerContext));
     CartUrlProvider          = cartUrlProvider ?? throw new ArgumentNullException(nameof(cartUrlProvider));
     EditingOrderProvider     = editingOrderProvider ?? throw new ArgumentNullException(nameof(editingOrderProvider));
     CheckoutService          = checkoutService ?? throw new ArgumentNullException(nameof(checkoutService));
 }
Esempio n. 11
0
 public ProductSetController(IComposerContext composerContext,
                             ISearchUrlProvider searchUrlProvider,
                             ISearchQueryContext searchQueryContext,
                             IInventoryLocationProvider inventoryLocationProvider) : base(composerContext, searchUrlProvider, searchQueryContext, inventoryLocationProvider)
 {
     QueryType = SearchQueryType.ProductSet;
 }
Esempio n. 12
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));
        }
Esempio n. 13
0
 public TestController(
     IInventoryLocationProvider inventoryLocationProvider,
     IComposerContext composerContext)
 {
     _inventoryLocationProvider = inventoryLocationProvider;
     _composerContext           = composerContext;
 }
Esempio n. 14
0
        public PaymentController(IComposerContext composerContext, IPaymentViewService paymentViewService, IImageViewService imageService,
                                 IRecurringScheduleUrlProvider recurringScheduleUrlProvider, IRecurringCartUrlProvider recurringCartUrlProvider)
        {
            if (composerContext == null)
            {
                throw new ArgumentNullException("composerContext");
            }
            if (imageService == null)
            {
                throw new ArgumentNullException("imageService");
            }
            if (paymentViewService == null)
            {
                throw new ArgumentNullException(nameof(paymentViewService));
            }
            if (recurringScheduleUrlProvider == null)
            {
                throw new ArgumentNullException("recurringScheduleUrlProvider");
            }
            if (recurringCartUrlProvider == null)
            {
                throw new ArgumentNullException("recurringCartUrlProvider");
            }

            ComposerContext              = composerContext;
            PaymentViewService           = paymentViewService;
            ImageService                 = imageService;
            RecurringScheduleUrlProvider = recurringScheduleUrlProvider;
            RecurringCartUrlProvider     = recurringCartUrlProvider;
        }
 public VaultProfileController(IComposerContext composerContext, IVaultProfileViewService vaultProfileViewService,
                               IImageViewService imageViewService)
 {
     ComposerContext         = composerContext ?? throw new ArgumentNullException(nameof(composerContext));
     VaultProfileViewService = vaultProfileViewService ?? throw new ArgumentNullException(nameof(vaultProfileViewService));
     ImageViewService        = imageViewService ?? throw new ArgumentNullException(nameof(imageViewService));
 }
 public LanguageSwitchProvider(ILanguageSwitchService viewService, IComposerContext composerContext, IPageService pageService, HttpRequestBase request)
 {
     ComposerContext       = composerContext ?? throw new ArgumentNullException(nameof(composerContext));
     LanguageSwitchService = viewService ?? throw new ArgumentNullException(nameof(viewService));
     PageService           = pageService ?? throw new ArgumentNullException(nameof(pageService));
     Request = request ?? throw new ArgumentNullException(nameof(request));
 }
 public CheckoutController(
     IPageService pageService,
     IComposerContext composerContext,
     ICheckoutBreadcrumbViewService confirmationBreadcrumbViewService,
     IBreadcrumbViewService breadcrumbViewService,
     ILanguageSwitchService languageSwitchService,
     ICartUrlProvider urlProvider,
     ICheckoutNavigationViewService checkoutNavigationViewService,
     IPaymentViewService paymentViewService,
     IMyAccountUrlProvider myAccountUrlProvider,
     ICartService cartService,
     IWebsiteContext websiteContext) :
     base(pageService,
          composerContext,
          confirmationBreadcrumbViewService,
          breadcrumbViewService,
          languageSwitchService,
          urlProvider,
          checkoutNavigationViewService,
          paymentViewService,
          myAccountUrlProvider,
          cartService,
          websiteContext)
 {
 }
Esempio n. 18
0
 public BrowsingCategoriesController(
     IComposerContext composerContext,
     IBrowseCategoryRequestContext requestContext,
     IPageService pageService,
     ICategoryMetaContext categoryMetaContext)
     : base(composerContext, requestContext, pageService, categoryMetaContext)
 {
 }
Esempio n. 19
0
        public HeaderController(IPageService pageService,
                                IComposerContext composerContext)

            : base(
                pageService,
                composerContext)
        {
        }
Esempio n. 20
0
 protected OrderBaseController(
     IComposerContext composerContext,
     IOrderUrlProvider orderUrlProvider,
     IOrderHistoryViewService orderHistoryViewService)
 {
     ComposerContext         = composerContext ?? throw new ArgumentNullException(nameof(composerContext));
     OrderUrlProvider        = orderUrlProvider ?? throw new ArgumentNullException(nameof(orderUrlProvider));
     OrderHistoryViewService = orderHistoryViewService ?? throw new ArgumentNullException(nameof(orderHistoryViewService));
 }
Esempio n. 21
0
 public StoreLocatorController(IComposerContext composerContext,
                               IStoreViewService storeViewService,
                               IStoreDirectoryViewService storeDirectoryViewService,
                               IStoreUrlProvider storeUrlProvider,
                               IBreadcrumbViewService breadcrumbViewService,
                               ILanguageSwitchService languageSwitchViewService) :
     base(composerContext, storeViewService, storeDirectoryViewService, storeUrlProvider, breadcrumbViewService, languageSwitchViewService)
 {
 }
        public FromPriceProvider(IComposerContext composerContext)
        {
            if (composerContext == null)
            {
                throw new ArgumentNullException(nameof(composerContext));
            }

            ComposerContext = composerContext;
        }
Esempio n. 23
0
 protected CartBaseController(
     IComposerContext composerContext,
     ICartUrlProvider cartUrlProvider,
     IPageService pageService)
 {
     ComposerContext = composerContext ?? throw new ArgumentNullException(nameof(composerContext));
     CartUrlProvider = cartUrlProvider ?? throw new ArgumentNullException(nameof(cartUrlProvider));
     PageService     = pageService ?? throw new ArgumentNullException(nameof(pageService));
 }
Esempio n. 24
0
 protected MembershipBaseController(
     IMyAccountUrlProvider myAccountUrlProvider,
     IComposerContext composerContext,
     IMembershipViewService membershipViewService)
 {
     MyAccountUrlProvider  = myAccountUrlProvider ?? throw new ArgumentNullException(nameof(myAccountUrlProvider));
     ComposerContext       = composerContext ?? throw new ArgumentNullException(nameof(composerContext));
     MembershipViewService = membershipViewService ?? throw new ArgumentNullException(nameof(membershipViewService));
 }
Esempio n. 25
0
 public OrderController(
     IComposerContext composerContext,
     IOrderHistoryViewService orderHistoryViewService,
     IOrderUrlProvider orderUrlProvider)
 {
     OrderHistoryViewService = orderHistoryViewService ?? throw new ArgumentNullException(nameof(orderHistoryViewService));
     OrderUrlProvider        = orderUrlProvider ?? throw new ArgumentNullException(nameof(orderUrlProvider));
     ComposerContext         = composerContext ?? throw new ArgumentNullException(nameof(composerContext));
 }
 public PaymentController(IComposerContext composerContext, IPaymentViewService paymentViewService, IImageViewService imageService,
                          IRecurringScheduleUrlProvider recurringScheduleUrlProvider, IRecurringCartUrlProvider recurringCartUrlProvider)
 {
     ComposerContext              = composerContext ?? throw new ArgumentNullException(nameof(composerContext));
     PaymentViewService           = paymentViewService ?? throw new ArgumentNullException(nameof(paymentViewService));
     ImageService                 = imageService ?? throw new ArgumentNullException(nameof(imageService));
     RecurringScheduleUrlProvider = recurringScheduleUrlProvider ?? throw new ArgumentNullException(nameof(recurringScheduleUrlProvider));
     RecurringCartUrlProvider     = recurringCartUrlProvider ?? throw new ArgumentNullException(nameof(recurringCartUrlProvider));
 }
Esempio n. 27
0
 public StoreLocatorController(IStoreLocatorViewService storesListViewService,
                               IStoreViewService storeViewService,
                               IComposerContext composerContext,
                               IMapConfigurationViewService mapConfigurationViewService)
 {
     StoreLocatorViewService     = storesListViewService;
     ComposerContext             = composerContext;
     StoreViewService            = storeViewService;
     MapConfigurationViewService = mapConfigurationViewService;
 }
Esempio n. 28
0
 public WishListController(IComposerContext composerContext,
                           ICustomerViewService customerViewService,
                           IBreadcrumbViewService breadcrumbViewService,
                           ILocalizationProvider localizationProvider,
                           IWishListUrlProvider wishListUrlProvider,
                           IWishListViewService wishListViewService,
                           IWebsiteContext websiteContext) :
     base(composerContext, customerViewService, breadcrumbViewService, localizationProvider, wishListUrlProvider, wishListViewService, websiteContext)
 {
 }
Esempio n. 29
0
 public MembershipController(
     IMyAccountUrlProvider myAccountUrlProvider,
     IComposerContext composerContext,
     IMembershipViewService membershipViewService)
     : base(
         myAccountUrlProvider,
         composerContext,
         membershipViewService)
 {
 }
Esempio n. 30
0
 public StoreBreadcrumbProvider(IBreadcrumbViewService breadcrumbViewService,
                                IComposerContext composerContext,
                                IStoreContext storeContext,
                                ISiteConfiguration siteConfiguration)
 {
     ComposerContext       = composerContext ?? throw new ArgumentNullException(nameof(composerContext));
     BreadcrumbViewService = breadcrumbViewService ?? throw new ArgumentNullException(nameof(breadcrumbViewService));
     StoreContext          = storeContext ?? throw new ArgumentNullException(nameof(storeContext));
     SiteConfiguration     = siteConfiguration ?? throw new ArgumentNullException(nameof(siteConfiguration));
 }