コード例 #1
0
ファイル: PdfService.cs プロジェクト: UpasakMajumder/Dev_code
        public PdfService(IOrderViewClient orderViewClient, IFileClient fileClient, IKenticoResourceService resources, IKenticoDocumentProvider documents, IKenticoLogger logger)
        {
            if (orderViewClient == null)
            {
                throw new ArgumentNullException(nameof(orderViewClient));
            }
            if (fileClient == null)
            {
                throw new ArgumentNullException(nameof(fileClient));
            }
            if (resources == null)
            {
                throw new ArgumentNullException(nameof(resources));
            }
            if (documents == null)
            {
                throw new ArgumentNullException(nameof(documents));
            }
            if (logger == null)
            {
                throw new ArgumentNullException(nameof(logger));
            }

            this.orderViewClient = orderViewClient;
            this.fileClient      = fileClient;
            this.resources       = resources;
            this.documents       = documents;
            this.logger          = logger;
        }
コード例 #2
0
        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;
        }
コード例 #3
0
        public TemplateService(IKenticoResourceService resources, IKenticoLogger logger, ITemplatedClient templateClient,
                               IKenticoUserProvider users, IKenticoDocumentProvider documents, IKenticoProductsProvider products)
        {
            if (resources == null)
            {
                throw new ArgumentNullException(nameof(resources));
            }
            if (logger == null)
            {
                throw new ArgumentNullException(nameof(logger));
            }
            if (templateClient == null)
            {
                throw new ArgumentNullException(nameof(templateClient));
            }
            if (users == null)
            {
                throw new ArgumentNullException(nameof(users));
            }
            if (documents == null)
            {
                throw new ArgumentNullException(nameof(documents));
            }
            if (products == null)
            {
                throw new ArgumentNullException(nameof(products));
            }

            this._resources      = resources;
            this._logger         = logger;
            this._templateClient = templateClient;
            this._users          = users;
            this._documents      = documents;
            this._products       = products;
        }
コード例 #4
0
        public SearchService(IMapper mapper, IKenticoResourceService resources, IKenticoSiteProvider site,
                             IKenticoSearchService kenticoSearch, IKenticoProductsProvider products, IKenticoDocumentProvider documents)
        {
            if (mapper == null)
            {
                throw new ArgumentNullException(nameof(mapper));
            }
            if (resources == null)
            {
                throw new ArgumentNullException(nameof(resources));
            }
            if (site == null)
            {
                throw new ArgumentNullException(nameof(site));
            }
            if (kenticoSearch == null)
            {
                throw new ArgumentNullException(nameof(kenticoSearch));
            }
            if (products == null)
            {
                throw new ArgumentNullException(nameof(products));
            }
            if (documents == null)
            {
                throw new ArgumentNullException(nameof(documents));
            }

            this.mapper        = mapper;
            this.resources     = resources;
            this.siteProvider  = site;
            this.kenticoSearch = kenticoSearch;
            this.products      = products;
            this.documents     = documents;
        }
コード例 #5
0
        public CreditCard3dsi(ISubmissionService submissionService, IUserDataServiceClient userClient, IKenticoUserProvider kenticoUsers, IKenticoLogger logger, IKenticoResourceService resources, IKenticoDocumentProvider documents, IKenticoSiteProvider kenticoSite, ISendSubmitOrder sendOrder, IShoppingCartProvider shoppingCart, IGetOrderDataService orderDataProvider, IOrderResultPageUrlFactory resultUrlFactory)
        {
            if (submissionService == null)
            {
                throw new ArgumentNullException(nameof(submissionService));
            }
            if (userClient == null)
            {
                throw new ArgumentNullException(nameof(userClient));
            }
            if (kenticoUsers == null)
            {
                throw new ArgumentNullException(nameof(kenticoUsers));
            }
            if (logger == null)
            {
                throw new ArgumentNullException(nameof(logger));
            }
            if (resources == null)
            {
                throw new ArgumentNullException(nameof(resources));
            }
            if (documents == null)
            {
                throw new ArgumentNullException(nameof(documents));
            }
            if (kenticoSite == null)
            {
                throw new ArgumentNullException(nameof(kenticoSite));
            }
            if (sendOrder == null)
            {
                throw new ArgumentNullException(nameof(sendOrder));
            }
            if (shoppingCart == null)
            {
                throw new ArgumentNullException(nameof(shoppingCart));
            }
            if (orderDataProvider == null)
            {
                throw new ArgumentNullException(nameof(orderDataProvider));
            }
            if (resultUrlFactory == null)
            {
                throw new ArgumentNullException(nameof(resultUrlFactory));
            }

            this.submissionService = submissionService;
            this.userClient        = userClient;
            this.kenticoUsers      = kenticoUsers;
            this.logger            = logger;
            this.resources         = resources;
            this.documents         = documents;
            this.kenticoSite       = kenticoSite;
            this.sendOrder         = sendOrder;
            this.shoppingCart      = shoppingCart;
            this.orderDataProvider = orderDataProvider;
            this.resultUrlFactory  = resultUrlFactory;
        }
コード例 #6
0
        public OrderListService(IMapper mapper, IOrderViewClient orderClient, IKenticoUserProvider kenticoUsers,
                                IKenticoResourceService kenticoResources, IKenticoSiteProvider site, IKenticoOrderProvider order,
                                IKenticoDocumentProvider documents, IKenticoPermissionsProvider permissions, IKenticoLogger logger, IKenticoAddressBookProvider kenticoAddressBook)
        {
            if (mapper == null)
            {
                throw new ArgumentNullException(nameof(mapper));
            }
            if (orderClient == null)
            {
                throw new ArgumentNullException(nameof(orderClient));
            }
            if (kenticoUsers == null)
            {
                throw new ArgumentNullException(nameof(kenticoUsers));
            }
            if (kenticoResources == null)
            {
                throw new ArgumentNullException(nameof(kenticoResources));
            }
            if (site == null)
            {
                throw new ArgumentNullException(nameof(site));
            }
            if (order == null)
            {
                throw new ArgumentNullException(nameof(order));
            }
            if (permissions == null)
            {
                throw new ArgumentNullException(nameof(permissions));
            }
            if (documents == null)
            {
                throw new ArgumentNullException(nameof(documents));
            }
            if (logger == null)
            {
                throw new ArgumentNullException(nameof(logger));
            }
            if (kenticoAddressBook == null)
            {
                throw new ArgumentNullException(nameof(kenticoAddressBook));
            }

            _mapper             = mapper;
            _orderClient        = orderClient;
            _kenticoUsers       = kenticoUsers;
            _kenticoResources   = kenticoResources;
            _site               = site;
            _order              = order;
            _permissions        = permissions;
            _logger             = logger;
            _kenticoAddressBook = kenticoAddressBook;

            _orderDetailUrl = documents.GetDocumentUrl(kenticoResources.GetSettingsKey("KDA_OrderDetailUrl"));
        }
コード例 #7
0
        public OrderResultPageUrlFactory(IKenticoResourceService resources, IKenticoDocumentProvider documents)
        {
            if (resources == null)
            {
                throw new ArgumentNullException(nameof(resources));
            }
            if (documents == null)
            {
                throw new ArgumentNullException(nameof(documents));
            }

            this.resources = resources;
            this.documents = documents;
        }
コード例 #8
0
        public CreditCard3dsiDemo(IKenticoResourceService resources, IKenticoDocumentProvider documents)
        {
            if (resources == null)
            {
                throw new ArgumentNullException(nameof(resources));
            }
            if (documents == null)
            {
                throw new ArgumentNullException(nameof(documents));
            }

            this.resources = resources;
            this.documents = documents;
        }
コード例 #9
0
        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;
        }
コード例 #10
0
        public ShoppingCartProvider(IKenticoResourceService resources, IKenticoLogger logger, IKenticoDocumentProvider documents, IMapper mapper, IShippingEstimationSettings estimationSettings, IDynamicPriceRangeProvider dynamicPrices, IKenticoProductsProvider productProvider)
        {
            if (resources == null)
            {
                throw new ArgumentNullException(nameof(resources));
            }
            if (logger == null)
            {
                throw new ArgumentNullException(nameof(logger));
            }
            if (documents == null)
            {
                throw new ArgumentNullException(nameof(documents));
            }
            if (mapper == null)
            {
                throw new ArgumentNullException(nameof(mapper));
            }
            if (estimationSettings == null)
            {
                throw new ArgumentNullException(nameof(estimationSettings));
            }
            if (dynamicPrices == null)
            {
                throw new ArgumentNullException(nameof(dynamicPrices));
            }
            if (productProvider == null)
            {
                throw new ArgumentNullException(nameof(dynamicPrices));
            }

            this.resources          = resources;
            this.logger             = logger;
            this.documents          = documents;
            this.mapper             = mapper;
            this.estimationSettings = estimationSettings;
            this.dynamicPrices      = dynamicPrices;
            this.productProvider    = productProvider;
        }
コード例 #11
0
        public LoginService(IKenticoUserProvider kenticoUsers, IKenticoResourceService resources, IKenticoDocumentProvider documents, IKenticoLoginProvider login)
        {
            if (kenticoUsers == null)
            {
                throw new ArgumentNullException(nameof(kenticoUsers));
            }
            if (resources == null)
            {
                throw new ArgumentNullException(nameof(resources));
            }
            if (documents == null)
            {
                throw new ArgumentNullException(nameof(documents));
            }
            if (login == null)
            {
                throw new ArgumentNullException(nameof(login));
            }

            this.kenticoUsers = kenticoUsers;
            this.resources    = resources;
            this.documents    = documents;
            this.login        = login;
        }