public ShoppingCartService( IShoppingCartProvider shoppingCartProvider, MusicStoreContext dbContext) { _shoppingCart = shoppingCartProvider.GetCurrentCart(); _dbContext = dbContext; }
public PurchaseOrder(IShoppingCartProvider shoppingCart, ISendSubmitOrder sendOrder, IGetOrderDataService orderDataProvider, IOrderResultPageUrlFactory resultUrlFactory, IKenticoResourceService resources) { if (shoppingCart == null) { throw new ArgumentNullException(nameof(shoppingCart)); } if (sendOrder == null) { throw new ArgumentNullException(nameof(sendOrder)); } if (orderDataProvider == null) { throw new ArgumentNullException(nameof(orderDataProvider)); } if (resultUrlFactory == null) { throw new ArgumentNullException(nameof(resultUrlFactory)); } if (resources == null) { throw new ArgumentNullException(nameof(resources)); } this.shoppingCart = shoppingCart; this.sendOrder = sendOrder; this.orderDataProvider = orderDataProvider; this.resultUrlFactory = resultUrlFactory; this.resources = resources; }
public ShoppingCartBuilder( IPromptItemProvider <T> promptItemProvider, IShoppingCartProvider <T> shoppingCartProvider) { _shoppingCartProvider = shoppingCartProvider; _promptItemProvider = promptItemProvider; }
public OrderCreationService(IShoppingCartProvider shoppingCartProvider, IKenticoAddressBookProvider kenticoAddressBookService, IKenticoUserProvider KenticoUserProvider, IKenticoResourceService kenticoresourceService, IFailedOrderStatusProvider failedOrderStatusProvider) { if (shoppingCartProvider == null) { throw new ArgumentNullException(nameof(shoppingCartProvider)); } if (kenticoAddressBookService == null) { throw new ArgumentNullException(nameof(kenticoAddressBookService)); } if (KenticoUserProvider == null) { throw new ArgumentNullException(nameof(KenticoUserProvider)); } if (kenticoresourceService == null) { throw new ArgumentNullException(nameof(kenticoresourceService)); } if (failedOrderStatusProvider == null) { throw new ArgumentNullException(nameof(failedOrderStatusProvider)); } this.shoppingCartProvider = shoppingCartProvider; this.kenticoAddressBookService = kenticoAddressBookService; this.KenticoUserProvider = KenticoUserProvider; this.kenticoresourceService = kenticoresourceService; this.failedOrderStatusProvider = failedOrderStatusProvider; }
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; }
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 IActionResult AddToCart(AddToCartModel model) { Product product = _productProvider.GetProduct(model.Id); IShoppingCartProvider provider = (IShoppingCartProvider)HttpContext.RequestServices.GetService(typeof(IShoppingCartProvider)); provider.AddToCart(GetUserSession(), GetCartSummary(), product, model.Quantity); return(RedirectToAction("Product", "Product", new { id = model.Id, productName = BaseModel.RouteFriendlyName(product.Name) })); }
public CartController(IShoppingCartProvider shoppingCartProvider, IAccountProvider accountProvider, IPluginClassesService pluginClassesService, IStockProvider stockProvider, IApplicationProvider applicationProvider) { _applicationProvider = applicationProvider ?? throw new ArgumentNullException(nameof(applicationProvider)); _shoppingCartProvider = shoppingCartProvider ?? throw new ArgumentNullException(nameof(shoppingCartProvider)); _accountProvider = accountProvider ?? throw new ArgumentNullException(nameof(accountProvider)); _pluginClassesService = pluginClassesService ?? throw new ArgumentNullException(nameof(pluginClassesService)); _stockProvider = stockProvider ?? throw new ArgumentNullException(nameof(stockProvider)); }
public InfoMedicineController(IMedicineUsageProvider medicineusageprovider, IInfoMedicineProvider infoMedicineProvider, IMedicineCategoryProvider medicineCategoryProvider, IInfoAndCategoryProvider infoAndCategoryProvider, IShoppingCartProvider shoppingCartProvider, IMedicineOrderProvider medicineOrderProvider) { _medicineusageprovider = medicineusageprovider; _infoMedicineProvider = infoMedicineProvider; _medicineCategoryProvider = medicineCategoryProvider; _infoAndCategoryProvider = infoAndCategoryProvider; _shoppingCartProvider = shoppingCartProvider; _medicineOrderProvider = medicineOrderProvider; }
public ProductsController( IOnlineStoreData data, IShoppingCartProvider shoppingCartProvider, IImageValidationService imageValidator, IImageManipulatingService imageManipulatingService) : base(data, shoppingCartProvider) { this.imageValidator = imageValidator; this.imageManipulatingService = imageManipulatingService; }
public BusinessUnitService(IKenticoBusinessUnitsProvider kenticoBusinessUnits, IShoppingCartProvider shoppingCartProvider) { if (kenticoBusinessUnits == null) { throw new ArgumentNullException(nameof(kenticoBusinessUnits)); } if (shoppingCartProvider == null) { throw new ArgumentNullException(nameof(shoppingCartProvider)); } this.kenticoBusinessUnits = kenticoBusinessUnits; _shoppingCartProvider = shoppingCartProvider; }
public ShoppingCartController(IShoppingCartService service, IMapper mapper, IShoppingCartProvider provider) { if (service == null) { throw new ArgumentNullException(nameof(service)); } if (mapper == null) { throw new ArgumentNullException(nameof(mapper)); } if (provider == null) { throw new ArgumentNullException(nameof(provider)); } this.service = service; this.mapper = mapper; this.provider = provider; }
public BusinessUnitsController(IBusinessUnitsService businessUnits, IMapper mapper, IShoppingCartProvider shoppingCartProvider) { if (businessUnits == null) { throw new ArgumentNullException(nameof(businessUnits)); } if (mapper == null) { throw new ArgumentNullException(nameof(mapper)); } if (shoppingCartProvider == null) { throw new ArgumentNullException(nameof(shoppingCartProvider)); } this.mapper = mapper; this.businessUnits = businessUnits; _shoppingCartProvider = shoppingCartProvider; }
/// <summary> /// Page load event /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Page_Load(object sender, EventArgs e) { try { _shoppingCart = DIContainer.Resolve <IShoppingCartProvider>(); _businessUnit = DIContainer.Resolve <IKenticoBusinessUnitsProvider>(); if (AuthenticationHelper.IsAuthenticated() && !IsPostBack) { int campaignID = QueryHelper.GetInteger("campid", 0); if (campaignID > 0) { BindData(campaignID); } } } catch (Exception ex) { EventLogProvider.LogInformation("Kadena_CMSWebParts_Kadena_Cart_FailedOrdersCart", "Page_Load", ex.Message); } }
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; }
public SubmitOrderService(IShoppingCartProvider shoppingCart, ICreditCard3dsi creditCard3dsi, ICreditCard3dsiDemo creditCard3dsiDemo, IPurchaseOrder purchaseOrder) { if (shoppingCart == null) { throw new ArgumentNullException(nameof(shoppingCart)); } if (creditCard3dsi == null) { throw new ArgumentNullException(nameof(creditCard3dsi)); } if (creditCard3dsiDemo == null) { throw new ArgumentNullException(nameof(creditCard3dsiDemo)); } if (purchaseOrder == null) { throw new ArgumentNullException(nameof(purchaseOrder)); } this.shoppingCart = shoppingCart; this.creditCard3dsi = creditCard3dsi; this.creditCard3dsiDemo = creditCard3dsiDemo; this.purchaseOrder = purchaseOrder; }
public ShoppingCartController(IShoppingCartProvider shoppingCartProvider) { _shoppingCartProvider = shoppingCartProvider; }
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; }
public ShoppingCartController(IOnlineStoreData data, IShoppingCartProvider shoppingCartProvider, IImageManipulatingService manipulatingService) : base(data, shoppingCartProvider) { this.manipulatingService = manipulatingService; }
public OrderController(IOnlineStoreData data, IShoppingCartProvider shoppingCartProvider) : base(data, shoppingCartProvider) { }
protected BaseController(IOnlineStoreData data, IShoppingCartProvider shoppingCartProvider) { this.Data = data; this.ShoppingCartProvider = shoppingCartProvider; }
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; }
public KendoGridAdministrationController(IOnlineStoreData data, IShoppingCartProvider shoppingCartProvider) : base(data, shoppingCartProvider) { }