public OrderDataFactory(IKenticoResourceService resources, IKenticoDocumentProvider documents, IKenticoLocalizationProvider kenticoLocalization, IKadenaSettings settings)
        {
            if (resources == null)
            {
                throw new ArgumentNullException(nameof(resources));
            }
            if (documents == null)
            {
                throw new ArgumentNullException(nameof(documents));
            }
            if (kenticoLocalization == null)
            {
                throw new ArgumentNullException(nameof(kenticoLocalization));
            }
            if (settings == null)
            {
                throw new ArgumentNullException(nameof(settings));
            }


            this.resources           = resources;
            this.documents           = documents;
            this.kenticoLocalization = kenticoLocalization;
            this.settings            = settings;
        }
示例#2
0
        public ShoppingCartService(IKenticoSiteProvider kenticoSite,
                                   IKenticoLocalizationProvider localization,
                                   IKenticoPermissionsProvider permissions,
                                   IKenticoUserProvider kenticoUsers,
                                   IKenticoResourceService resources,
                                   ITaxEstimationService taxCalculator,
                                   IKListService mailingService,
                                   IShoppingCartProvider shoppingCart,
                                   ICheckoutPageFactory checkoutfactory)
        {
            if (kenticoSite == null)
            {
                throw new ArgumentNullException(nameof(kenticoSite));
            }
            if (localization == null)
            {
                throw new ArgumentNullException(nameof(localization));
            }
            if (permissions == null)
            {
                throw new ArgumentNullException(nameof(permissions));
            }
            if (kenticoUsers == null)
            {
                throw new ArgumentNullException(nameof(kenticoUsers));
            }
            if (resources == null)
            {
                throw new ArgumentNullException(nameof(resources));
            }
            if (taxCalculator == null)
            {
                throw new ArgumentNullException(nameof(taxCalculator));
            }
            if (mailingService == null)
            {
                throw new ArgumentNullException(nameof(mailingService));
            }
            if (shoppingCart == null)
            {
                throw new ArgumentNullException(nameof(shoppingCart));
            }
            if (checkoutfactory == null)
            {
                throw new ArgumentNullException(nameof(checkoutfactory));
            }

            this.kenticoSite     = kenticoSite;
            this.localization    = localization;
            this.permissions     = permissions;
            this.kenticoUsers    = kenticoUsers;
            this.resources       = resources;
            this.taxCalculator   = taxCalculator;
            this.mailingService  = mailingService;
            this.shoppingCart    = shoppingCart;
            this.checkoutfactory = checkoutfactory;
        }
        public DateTimeFormatter(IKenticoLocalizationProvider localization)
        {
            if (localization == null)
            {
                throw new ArgumentNullException(nameof(localization));
            }

            this.localization = localization;
        }
示例#4
0
        public CustomerDataService(IKenticoUserProvider kenticoUsers, IKenticoPermissionsProvider kenticoPermissions, IKenticoLocalizationProvider kenticoLocalization)
        {
            if (kenticoUsers == null)
            {
                throw new ArgumentNullException(nameof(kenticoUsers));
            }
            if (kenticoPermissions == null)
            {
                throw new ArgumentNullException(nameof(kenticoPermissions));
            }
            if (kenticoLocalization == null)
            {
                throw new ArgumentNullException(nameof(kenticoLocalization));
            }

            this.kenticoUsers        = kenticoUsers;
            this.kenticoPermissions  = kenticoPermissions;
            this.kenticoLocalization = kenticoLocalization;
        }
        public CheckoutPageFactory(IKenticoResourceService resources, IKenticoDocumentProvider documents, IKenticoLocalizationProvider kenticoLocalization)
        {
            if (resources == null)
            {
                throw new ArgumentNullException(nameof(resources));
            }
            if (documents == null)
            {
                throw new ArgumentNullException(nameof(documents));
            }
            if (kenticoLocalization == null)
            {
                throw new ArgumentNullException(nameof(kenticoLocalization));
            }


            this.resources           = resources;
            this.documents           = documents;
            this.kenticoLocalization = kenticoLocalization;
        }
示例#6
0
        public TaxEstimationService(IKenticoLocalizationProvider kenticoLocalization,
                                    IKenticoResourceService resources,
                                    ITaxEstimationServiceClient taxCalculator,
                                    IKenticoLogger kenticoLog,
                                    IShoppingCartProvider shoppingCart,
                                    ICache cache)
        {
            if (kenticoLocalization == null)
            {
                throw new ArgumentNullException(nameof(kenticoLocalization));
            }
            if (resources == null)
            {
                throw new ArgumentNullException(nameof(resources));
            }
            if (taxCalculator == null)
            {
                throw new ArgumentNullException(nameof(taxCalculator));
            }
            if (kenticoLog == null)
            {
                throw new ArgumentNullException(nameof(kenticoLog));
            }
            if (shoppingCart == null)
            {
                throw new ArgumentNullException(nameof(shoppingCart));
            }
            if (cache == null)
            {
                throw new ArgumentNullException(nameof(cache));
            }

            this.kenticoLocalization = kenticoLocalization;
            this.resources           = resources;
            this.taxCalculator       = taxCalculator;
            this.kenticoLog          = kenticoLog;
            this.shoppingCart        = shoppingCart;
            this.cache = cache;
        }
        public SettingsService(IKenticoPermissionsProvider permissions,
                               IKenticoLocalizationProvider localization,
                               IKenticoSiteProvider site,
                               IKenticoUserProvider kenticoUsers,
                               IKenticoResourceService resources,
                               IShoppingCartProvider shoppingCart)
        {
            if (permissions == null)
            {
                throw new ArgumentNullException(nameof(permissions));
            }
            if (localization == null)
            {
                throw new ArgumentNullException(nameof(localization));
            }
            if (site == null)
            {
                throw new ArgumentNullException(nameof(site));
            }
            if (kenticoUsers == null)
            {
                throw new ArgumentNullException(nameof(kenticoUsers));
            }
            if (resources == null)
            {
                throw new ArgumentNullException(nameof(resources));
            }
            if (shoppingCart == null)
            {
                throw new ArgumentNullException(nameof(shoppingCart));
            }

            _permissions  = permissions;
            _localization = localization;
            _site         = site;
            _kenticoUsers = kenticoUsers;
            _resources    = resources;
            _shoppingCart = shoppingCart;
        }
示例#8
0
        public GetOrderDataService(IMapper mapper,
                                   IKenticoOrderProvider kenticoOrder,
                                   IShoppingCartProvider shoppingCart,
                                   IKenticoUserProvider kenticoUsers,
                                   IKenticoLogger kenticoLog,
                                   ITaxEstimationService taxService,
                                   ITemplatedClient templateService,
                                   IKenticoLocalizationProvider localization,
                                   IKenticoSiteProvider site,
                                   IKadenaSettings settings,
                                   IOrderDataFactory orderDataFactory
                                   )
        {
            if (mapper == null)
            {
                throw new ArgumentNullException(nameof(mapper));
            }
            if (kenticoOrder == null)
            {
                throw new ArgumentNullException(nameof(kenticoOrder));
            }
            if (shoppingCart == null)
            {
                throw new ArgumentNullException(nameof(shoppingCart));
            }
            if (kenticoUsers == null)
            {
                throw new ArgumentNullException(nameof(kenticoUsers));
            }
            if (kenticoLog == null)
            {
                throw new ArgumentNullException(nameof(kenticoLog));
            }
            if (taxService == null)
            {
                throw new ArgumentNullException(nameof(taxService));
            }
            if (templateService == null)
            {
                throw new ArgumentNullException(nameof(templateService));
            }
            if (localization == null)
            {
                throw new ArgumentNullException(nameof(localization));
            }
            if (site == null)
            {
                throw new ArgumentNullException(nameof(site));
            }
            if (settings == null)
            {
                throw new ArgumentNullException(nameof(settings));
            }
            if (orderDataFactory == null)
            {
                throw new ArgumentNullException(nameof(orderDataFactory));
            }

            this.mapper           = mapper;
            this.kenticoOrder     = kenticoOrder;
            this.shoppingCart     = shoppingCart;
            this.kenticoUsers     = kenticoUsers;
            this.kenticoLog       = kenticoLog;
            this.taxService       = taxService;
            this.templateService  = templateService;
            this.localization     = localization;
            this.siteProvider     = site;
            this.settings         = settings;
            this.orderDataFactory = orderDataFactory;
        }
示例#9
0
        public OrderDetailService(IMapper mapper,
                                  IOrderViewClient orderViewClient,
                                  IMailingListClient mailingClient,
                                  IKenticoOrderProvider kenticoOrder,
                                  IShoppingCartProvider shoppingCart,
                                  IKenticoProductsProvider products,
                                  IKenticoUserProvider kenticoUsers,
                                  IKenticoResourceService resources,
                                  IKenticoLogger kenticoLog,
                                  IKenticoLocalizationProvider localization,
                                  IKenticoPermissionsProvider permissions,
                                  IKenticoBusinessUnitsProvider businessUnits
                                  )
        {
            if (mapper == null)
            {
                throw new ArgumentNullException(nameof(mapper));
            }
            if (orderViewClient == null)
            {
                throw new ArgumentNullException(nameof(orderViewClient));
            }
            if (mailingClient == null)
            {
                throw new ArgumentNullException(nameof(mailingClient));
            }
            if (kenticoOrder == null)
            {
                throw new ArgumentNullException(nameof(kenticoOrder));
            }
            if (shoppingCart == null)
            {
                throw new ArgumentNullException(nameof(shoppingCart));
            }
            if (products == null)
            {
                throw new ArgumentNullException(nameof(products));
            }
            if (kenticoUsers == null)
            {
                throw new ArgumentNullException(nameof(kenticoUsers));
            }
            if (resources == null)
            {
                throw new ArgumentNullException(nameof(resources));
            }
            if (kenticoLog == null)
            {
                throw new ArgumentNullException(nameof(kenticoLog));
            }
            if (localization == null)
            {
                throw new ArgumentNullException(nameof(localization));
            }
            if (permissions == null)
            {
                throw new ArgumentNullException(nameof(permissions));
            }
            if (businessUnits == null)
            {
                throw new ArgumentNullException(nameof(businessUnits));
            }

            this.mapper          = mapper;
            this.orderViewClient = orderViewClient;
            this.kenticoOrder    = kenticoOrder;
            this.shoppingCart    = shoppingCart;
            this.products        = products;
            this.kenticoUsers    = kenticoUsers;
            this.resources       = resources;
            this.mailingClient   = mailingClient;
            this.kenticoLog      = kenticoLog;
            this.localization    = localization;
            this.permissions     = permissions;
            this.businessUnits   = businessUnits;
        }