public OrderController(IOrderService orderService, IShipmentService shipmentService, IWorkContext workContext, ICurrencyService currencyService, IPriceFormatter priceFormatter, IOrderProcessingService orderProcessingService, IDateTimeHelper dateTimeHelper, IPaymentService paymentService, ILocalizationService localizationService, IPdfService pdfService, IShippingService shippingService, ICountryService countryService, IProductAttributeParser productAttributeParser, IWebHelper webHelper, CatalogSettings catalogSettings, OrderSettings orderSettings, TaxSettings taxSettings, PdfSettings pdfSettings, ShippingSettings shippingSettings, AddressSettings addressSettings) { this._orderService = orderService; this._shipmentService = shipmentService; this._workContext = workContext; this._currencyService = currencyService; this._priceFormatter = priceFormatter; this._orderProcessingService = orderProcessingService; this._dateTimeHelper = dateTimeHelper; this._paymentService = paymentService; this._localizationService = localizationService; this._pdfService = pdfService; this._shippingService = shippingService; this._countryService = countryService; this._productAttributeParser = productAttributeParser; this._webHelper = webHelper; this._catalogSettings = catalogSettings; this._orderSettings = orderSettings; this._taxSettings = taxSettings; this._pdfSettings = pdfSettings; this._shippingSettings = shippingSettings; this._addressSettings = addressSettings; }
public PaymentGoogleCheckoutController(ISettingService settingService, IPaymentService paymentService, IOrderProcessingService orderProcessingService, IWebHelper webHelper, OrderSettings orderSettings, IWorkContext workContext, IStoreContext storeContext, CurrencySettings currencySettings, ICurrencyService currencyService, PaymentSettings paymentSettings) { this._settingService = settingService; this._paymentService = paymentService; this._orderProcessingService = orderProcessingService; this._webHelper = webHelper; this._orderSettings = orderSettings; this._workContext = workContext; this._storeContext = storeContext; this._currencySettings = currencySettings; this._currencyService = currencyService; this._paymentSettings = paymentSettings; }
public CheckoutController(IWorkContext workContext, IStoreContext storeContext, IShoppingCartService shoppingCartService, ILocalizationService localizationService, ITaxService taxService, ICurrencyService currencyService, IPriceFormatter priceFormatter, IOrderProcessingService orderProcessingService, ICustomerService customerService, IGenericAttributeService genericAttributeService, ICountryService countryService, IStateProvinceService stateProvinceService, IShippingService shippingService, IPaymentService paymentService, IOrderTotalCalculationService orderTotalCalculationService, ILogger logger, IOrderService orderService, IWebHelper webHelper, HttpContextBase httpContext, IMobileDeviceHelper mobileDeviceHelper, OrderSettings orderSettings, RewardPointsSettings rewardPointsSettings, PaymentSettings paymentSettings, AddressSettings addressSettings) { this._workContext = workContext; this._storeContext = storeContext; this._shoppingCartService = shoppingCartService; this._localizationService = localizationService; this._taxService = taxService; this._currencyService = currencyService; this._priceFormatter = priceFormatter; this._orderProcessingService = orderProcessingService; this._customerService = customerService; this._genericAttributeService = genericAttributeService; this._countryService = countryService; this._stateProvinceService = stateProvinceService; this._shippingService = shippingService; this._paymentService = paymentService; this._orderTotalCalculationService = orderTotalCalculationService; this._logger = logger; this._orderService = orderService; this._webHelper = webHelper; this._httpContext = httpContext; this._mobileDeviceHelper = mobileDeviceHelper; this._orderSettings = orderSettings; this._rewardPointsSettings = rewardPointsSettings; this._paymentSettings = paymentSettings; this._addressSettings = addressSettings; }
public ReturnRequestController(IOrderService orderService, IWorkContext workContext, IStoreContext storeContext, ICurrencyService currencyService, IPriceFormatter priceFormatter, IOrderProcessingService orderProcessingService, ILocalizationService localizationService, ICustomerService customerService, IWorkflowMessageService workflowMessageService, LocalizationSettings localizationSettings, OrderSettings orderSettings) { this._orderService = orderService; this._workContext = workContext; this._storeContext = storeContext; this._currencyService = currencyService; this._priceFormatter = priceFormatter; this._orderProcessingService = orderProcessingService; this._localizationService = localizationService; this._customerService = customerService; this._workflowMessageService = workflowMessageService; this._localizationSettings = localizationSettings; this._orderSettings = orderSettings; }
public CustomerController(IAuthenticationService authenticationService, IDateTimeHelper dateTimeHelper, DateTimeSettings dateTimeSettings, TaxSettings taxSettings, ILocalizationService localizationService, IWorkContext workContext, IStoreContext storeContext, ICustomerService customerService, IGenericAttributeService genericAttributeService, ICustomerRegistrationService customerRegistrationService, ITaxService taxService, RewardPointsSettings rewardPointsSettings, CustomerSettings customerSettings,AddressSettings addressSettings, ForumSettings forumSettings, OrderSettings orderSettings, IAddressService addressService, ICountryService countryService, IStateProvinceService stateProvinceService, IOrderTotalCalculationService orderTotalCalculationService, IOrderProcessingService orderProcessingService, IOrderService orderService, ICurrencyService currencyService, IPriceFormatter priceFormatter, IPictureService pictureService, INewsLetterSubscriptionService newsLetterSubscriptionService, IForumService forumService, IShoppingCartService shoppingCartService, IOpenAuthenticationService openAuthenticationService, IBackInStockSubscriptionService backInStockSubscriptionService, IDownloadService downloadService, IWebHelper webHelper, ICustomerActivityService customerActivityService, MediaSettings mediaSettings, IWorkflowMessageService workflowMessageService, LocalizationSettings localizationSettings, CaptchaSettings captchaSettings, ExternalAuthenticationSettings externalAuthenticationSettings) { this._authenticationService = authenticationService; this._dateTimeHelper = dateTimeHelper; this._dateTimeSettings = dateTimeSettings; this._taxSettings = taxSettings; this._localizationService = localizationService; this._workContext = workContext; this._storeContext = storeContext; this._customerService = customerService; this._genericAttributeService = genericAttributeService; this._customerRegistrationService = customerRegistrationService; this._taxService = taxService; this._rewardPointsSettings = rewardPointsSettings; this._customerSettings = customerSettings; this._addressSettings = addressSettings; this._forumSettings = forumSettings; this._orderSettings = orderSettings; this._addressService = addressService; this._countryService = countryService; this._stateProvinceService = stateProvinceService; this._orderProcessingService = orderProcessingService; this._orderTotalCalculationService = orderTotalCalculationService; this._orderService = orderService; this._currencyService = currencyService; this._priceFormatter = priceFormatter; this._pictureService = pictureService; this._newsLetterSubscriptionService = newsLetterSubscriptionService; this._forumService = forumService; this._shoppingCartService = shoppingCartService; this._openAuthenticationService = openAuthenticationService; this._backInStockSubscriptionService = backInStockSubscriptionService; this._downloadService = downloadService; this._webHelper = webHelper; this._customerActivityService = customerActivityService; this._mediaSettings = mediaSettings; this._workflowMessageService = workflowMessageService; this._localizationSettings = localizationSettings; this._captchaSettings = captchaSettings; this._externalAuthenticationSettings = externalAuthenticationSettings; }
/// <summary> /// Ctor /// </summary> /// <param name="orderService">Order service</param> /// <param name="webHelper">Web helper</param> /// <param name="localizationService">Localization service</param> /// <param name="languageService">Language service</param> /// <param name="productService">Product service</param> /// <param name="paymentService">Payment service</param> /// <param name="logger">Logger</param> /// <param name="orderTotalCalculationService">Order total calculationservice</param> /// <param name="priceCalculationService">Price calculation service</param> /// <param name="priceFormatter">Price formatter</param> /// <param name="productAttributeParser">Product attribute parser</param> /// <param name="productAttributeFormatter">Product attribute formatter</param> /// <param name="giftCardService">Gift card service</param> /// <param name="shoppingCartService">Shopping cart service</param> /// <param name="checkoutAttributeFormatter">Checkout attribute service</param> /// <param name="shippingService">Shipping service</param> /// <param name="shipmentService">Shipment service</param> /// <param name="taxService">Tax service</param> /// <param name="customerService">Customer service</param> /// <param name="discountService">Discount service</param> /// <param name="encryptionService">Encryption service</param> /// <param name="workContext">Work context</param> /// <param name="workflowMessageService">Workflow message service</param> /// <param name="customerActivityService">Customer activity service</param> /// <param name="currencyService">Currency service</param> /// <param name="affiliateService">Affiliate service</param> /// <param name="eventPublisher">Event published</param> /// <param name="paymentSettings">Payment settings</param> /// <param name="rewardPointsSettings">Reward points settings</param> /// <param name="orderSettings">Order settings</param> /// <param name="taxSettings">Tax settings</param> /// <param name="localizationSettings">Localization settings</param> /// <param name="currencySettings">Currency settings</param> public OrderProcessingService(IOrderService orderService, IWebHelper webHelper, ILocalizationService localizationService, ILanguageService languageService, IProductService productService, IPaymentService paymentService, ILogger logger, IOrderTotalCalculationService orderTotalCalculationService, IPriceCalculationService priceCalculationService, IPriceFormatter priceFormatter, IProductAttributeParser productAttributeParser, IProductAttributeFormatter productAttributeFormatter, IGiftCardService giftCardService, IShoppingCartService shoppingCartService, ICheckoutAttributeFormatter checkoutAttributeFormatter, IShippingService shippingService, IShipmentService shipmentService, ITaxService taxService, ICustomerService customerService, IDiscountService discountService, IEncryptionService encryptionService, IWorkContext workContext, IWorkflowMessageService workflowMessageService, IVendorService vendorService, ICustomerActivityService customerActivityService, ICurrencyService currencyService, IAffiliateService affiliateService, IEventPublisher eventPublisher, PaymentSettings paymentSettings, RewardPointsSettings rewardPointsSettings, OrderSettings orderSettings, TaxSettings taxSettings, LocalizationSettings localizationSettings, CurrencySettings currencySettings) { this._orderService = orderService; this._webHelper = webHelper; this._localizationService = localizationService; this._languageService = languageService; this._productService = productService; this._paymentService = paymentService; this._logger = logger; this._orderTotalCalculationService = orderTotalCalculationService; this._priceCalculationService = priceCalculationService; this._priceFormatter = priceFormatter; this._productAttributeParser = productAttributeParser; this._productAttributeFormatter = productAttributeFormatter; this._giftCardService = giftCardService; this._shoppingCartService = shoppingCartService; this._checkoutAttributeFormatter = checkoutAttributeFormatter; this._workContext = workContext; this._workflowMessageService = workflowMessageService; this._vendorService = vendorService; this._shippingService = shippingService; this._shipmentService = shipmentService; this._taxService = taxService; this._customerService = customerService; this._discountService = discountService; this._encryptionService = encryptionService; this._customerActivityService = customerActivityService; this._currencyService = currencyService; this._affiliateService = affiliateService; this._eventPublisher = eventPublisher; this._paymentSettings = paymentSettings; this._rewardPointsSettings = rewardPointsSettings; this._orderSettings = orderSettings; this._taxSettings = taxSettings; this._localizationSettings = localizationSettings; this._currencySettings = currencySettings; }
public ShoppingCartController(IProductService productService, IStoreContext storeContext, IWorkContext workContext, IShoppingCartService shoppingCartService, IPictureService pictureService, ILocalizationService localizationService, IProductAttributeService productAttributeService, IProductAttributeFormatter productAttributeFormatter, IProductAttributeParser productAttributeParser, ITaxService taxService, ICurrencyService currencyService, IPriceCalculationService priceCalculationService, IPriceFormatter priceFormatter, ICheckoutAttributeParser checkoutAttributeParser, ICheckoutAttributeFormatter checkoutAttributeFormatter, IOrderProcessingService orderProcessingService, IDiscountService discountService, ICustomerService customerService, IGiftCardService giftCardService, ICountryService countryService, IStateProvinceService stateProvinceService, IShippingService shippingService, IOrderTotalCalculationService orderTotalCalculationService, ICheckoutAttributeService checkoutAttributeService, IPaymentService paymentService, IWorkflowMessageService workflowMessageService, IPermissionService permissionService, IDownloadService downloadService, ICacheManager cacheManager, IWebHelper webHelper, ICustomerActivityService customerActivityService, IGenericAttributeService genericAttributeService, MediaSettings mediaSettings, ShoppingCartSettings shoppingCartSettings, CatalogSettings catalogSettings, OrderSettings orderSettings, ShippingSettings shippingSettings, TaxSettings taxSettings, CaptchaSettings captchaSettings, AddressSettings addressSettings) { this._productService = productService; this._workContext = workContext; this._storeContext = storeContext; this._shoppingCartService = shoppingCartService; this._pictureService = pictureService; this._localizationService = localizationService; this._productAttributeService = productAttributeService; this._productAttributeFormatter = productAttributeFormatter; this._productAttributeParser = productAttributeParser; this._taxService = taxService; this._currencyService = currencyService; this._priceCalculationService = priceCalculationService; this._priceFormatter = priceFormatter; this._checkoutAttributeParser = checkoutAttributeParser; this._checkoutAttributeFormatter = checkoutAttributeFormatter; this._orderProcessingService = orderProcessingService; this._discountService = discountService; this._customerService = customerService; this._giftCardService = giftCardService; this._countryService = countryService; this._stateProvinceService = stateProvinceService; this._shippingService = shippingService; this._orderTotalCalculationService = orderTotalCalculationService; this._checkoutAttributeService = checkoutAttributeService; this._paymentService = paymentService; this._workflowMessageService = workflowMessageService; this._permissionService = permissionService; this._downloadService = downloadService; this._cacheManager = cacheManager; this._webHelper = webHelper; this._customerActivityService = customerActivityService; this._genericAttributeService = genericAttributeService; this._mediaSettings = mediaSettings; this._shoppingCartSettings = shoppingCartSettings; this._catalogSettings = catalogSettings; this._orderSettings = orderSettings; this._shippingSettings = shippingSettings; this._taxSettings = taxSettings; this._captchaSettings = captchaSettings; this._addressSettings = addressSettings; }
public static OrderSettings ToEntity(this OrderSettingsModel model, OrderSettings destination) { return Mapper.Map(model, destination); }
public new void SetUp() { _workContext = null; _storeContext = null; var pluginFinder = new PluginFinder(); var cacheManager = new NasNullCache(); _shoppingCartSettings = new ShoppingCartSettings(); _catalogSettings = new CatalogSettings(); //price calculation service _discountService = MockRepository.GenerateMock<IDiscountService>(); _categoryService = MockRepository.GenerateMock<ICategoryService>(); _productAttributeParser = MockRepository.GenerateMock<IProductAttributeParser>(); _priceCalcService = new PriceCalculationService(_workContext, _discountService, _categoryService, _productAttributeParser, _shoppingCartSettings, _catalogSettings); _eventPublisher = MockRepository.GenerateMock<IEventPublisher>(); _eventPublisher.Expect(x => x.Publish(Arg<object>.Is.Anything)); _localizationService = MockRepository.GenerateMock<ILocalizationService>(); //shipping _shippingSettings = new ShippingSettings(); _shippingSettings.ActiveShippingRateComputationMethodSystemNames = new List<string>(); _shippingSettings.ActiveShippingRateComputationMethodSystemNames.Add("FixedRateTestShippingRateComputationMethod"); _shippingMethodRepository = MockRepository.GenerateMock<IRepository<ShippingMethod>>(); _logger = new NullLogger(); _shippingService = new ShippingService(_shippingMethodRepository, _logger, _productAttributeParser, _checkoutAttributeParser, _genericAttributeService, _localizationService, _shippingSettings, pluginFinder, _eventPublisher, _shoppingCartSettings); _shipmentService = MockRepository.GenerateMock<IShipmentService>(); _paymentService = MockRepository.GenerateMock<IPaymentService>(); _checkoutAttributeParser = MockRepository.GenerateMock<ICheckoutAttributeParser>(); _giftCardService = MockRepository.GenerateMock<IGiftCardService>(); _genericAttributeService = MockRepository.GenerateMock<IGenericAttributeService>(); //tax _taxSettings = new TaxSettings(); _taxSettings.ShippingIsTaxable = true; _taxSettings.PaymentMethodAdditionalFeeIsTaxable = true; _taxSettings.DefaultTaxAddressId = 10; _addressService = MockRepository.GenerateMock<IAddressService>(); _addressService.Expect(x => x.GetAddressById(_taxSettings.DefaultTaxAddressId)).Return(new Address() { Id = _taxSettings.DefaultTaxAddressId }); _taxService = new TaxService(_addressService, _workContext, _taxSettings, pluginFinder); _rewardPointsSettings = new RewardPointsSettings(); _orderTotalCalcService = new OrderTotalCalculationService(_workContext, _storeContext, _priceCalcService, _taxService, _shippingService, _paymentService, _checkoutAttributeParser, _discountService, _giftCardService, _genericAttributeService, _taxSettings, _rewardPointsSettings, _shippingSettings, _shoppingCartSettings, _catalogSettings); _orderService = MockRepository.GenerateMock<IOrderService>(); _webHelper = MockRepository.GenerateMock<IWebHelper>(); _languageService = MockRepository.GenerateMock<ILanguageService>(); _productService = MockRepository.GenerateMock<IProductService>(); _priceFormatter= MockRepository.GenerateMock<IPriceFormatter>(); _productAttributeFormatter= MockRepository.GenerateMock<IProductAttributeFormatter>(); _shoppingCartService= MockRepository.GenerateMock<IShoppingCartService>(); _checkoutAttributeFormatter= MockRepository.GenerateMock<ICheckoutAttributeFormatter>(); _customerService= MockRepository.GenerateMock<ICustomerService>(); _encryptionService = MockRepository.GenerateMock<IEncryptionService>(); _workflowMessageService = MockRepository.GenerateMock<IWorkflowMessageService>(); _customerActivityService = MockRepository.GenerateMock<ICustomerActivityService>(); _currencyService = MockRepository.GenerateMock<ICurrencyService>(); _affiliateService = MockRepository.GenerateMock<IAffiliateService>(); _vendorService = MockRepository.GenerateMock<IVendorService>(); _paymentSettings = new PaymentSettings() { ActivePaymentMethodSystemNames = new List<string>() { "Payments.TestMethod" } }; _orderSettings = new OrderSettings(); _localizationSettings = new LocalizationSettings(); _eventPublisher = MockRepository.GenerateMock<IEventPublisher>(); _eventPublisher.Expect(x => x.Publish(Arg<object>.Is.Anything)); _currencySettings = new CurrencySettings(); _orderProcessingService = new OrderProcessingService(_orderService, _webHelper, _localizationService, _languageService, _productService, _paymentService, _logger, _orderTotalCalcService, _priceCalcService, _priceFormatter, _productAttributeParser, _productAttributeFormatter, _giftCardService, _shoppingCartService, _checkoutAttributeFormatter, _shippingService, _shipmentService, _taxService, _customerService, _discountService, _encryptionService, _workContext, _workflowMessageService, _vendorService, _customerActivityService, _currencyService, _affiliateService, _eventPublisher, _paymentSettings, _rewardPointsSettings, _orderSettings, _taxSettings, _localizationSettings, _currencySettings); }