public ShippingModelFactory(IAddressModelFactory addressModelFactory, IAddressService addressService, ICountryService countryService, IDateRangeService dateRangeService, ILocalizationService localizationService, ILocalizedModelFactory localizedModelFactory, IPickupPluginManager pickupPluginManager, IShippingPluginManager shippingPluginManager, IShippingService shippingService, IStateProvinceService stateProvinceService) { _addressModelFactory = addressModelFactory; _addressService = addressService; _countryService = countryService; _dateRangeService = dateRangeService; _localizationService = localizationService; _localizedModelFactory = localizedModelFactory; _pickupPluginManager = pickupPluginManager; _shippingPluginManager = shippingPluginManager; _shippingService = shippingService; _stateProvinceService = stateProvinceService; }
public ShippingService(IAddressService addressService, ICacheManager cacheManager, ICheckoutAttributeParser checkoutAttributeParser, IEventPublisher eventPublisher, IGenericAttributeService genericAttributeService, ILocalizationService localizationService, ILogger logger, IPickupPluginManager pickupPluginManager, IPriceCalculationService priceCalculationService, IProductAttributeParser productAttributeParser, IProductService productService, IRepository <ShippingMethod> shippingMethodRepository, IRepository <Warehouse> warehouseRepository, IShippingPluginManager shippingPluginManager, IStoreContext storeContext, ShippingSettings shippingSettings, ShoppingCartSettings shoppingCartSettings) { _addressService = addressService; _cacheManager = cacheManager; _checkoutAttributeParser = checkoutAttributeParser; _eventPublisher = eventPublisher; _genericAttributeService = genericAttributeService; _localizationService = localizationService; _logger = logger; _pickupPluginManager = pickupPluginManager; _priceCalculationService = priceCalculationService; _productAttributeParser = productAttributeParser; _productService = productService; _shippingMethodRepository = shippingMethodRepository; _warehouseRepository = warehouseRepository; _shippingPluginManager = shippingPluginManager; _storeContext = storeContext; _shippingSettings = shippingSettings; _shoppingCartSettings = shoppingCartSettings; }
public ShippingController(IAddressService addressService, ICountryService countryService, ICustomerActivityService customerActivityService, IDateRangeService dateRangeService, IEventPublisher eventPublisher, ILocalizationService localizationService, ILocalizedEntityService localizedEntityService, INotificationService notificationService, IPermissionService permissionService, IPickupPluginManager pickupPluginManager, ISettingService settingService, IShippingModelFactory shippingModelFactory, IShippingPluginManager shippingPluginManager, IShippingService shippingService, IGenericAttributeService genericAttributeService, IWorkContext workContext, ShippingSettings shippingSettings) { _addressService = addressService; _countryService = countryService; _customerActivityService = customerActivityService; _dateRangeService = dateRangeService; _eventPublisher = eventPublisher; _localizationService = localizationService; _localizedEntityService = localizedEntityService; _notificationService = notificationService; _permissionService = permissionService; _pickupPluginManager = pickupPluginManager; _settingService = settingService; _shippingModelFactory = shippingModelFactory; _shippingPluginManager = shippingPluginManager; _shippingService = shippingService; _genericAttributeService = genericAttributeService; _workContext = workContext; _shippingSettings = shippingSettings; }
public SendinBlueMarketingAutomationManager(CurrencySettings currencySettings, IActionContextAccessor actionContextAccessor, ICurrencyService currencyService, IGenericAttributeService genericAttributeService, ILogger logger, IOrderTotalCalculationService orderTotalCalculationService, IPictureService pictureService, IPriceCalculationService priceCalculationService, IProductAttributeParser productAttributeParser, IShippingPluginManager shippingPluginManager, IShoppingCartService shoppingCartService, IStoreContext storeContext, IUrlHelperFactory urlHelperFactory, IUrlRecordService urlRecordService, IWebHelper webHelper, IWorkContext workContext, SendinBlueSettings sendinBlueSettings) { _currencySettings = currencySettings; _actionContextAccessor = actionContextAccessor; _currencyService = currencyService; _genericAttributeService = genericAttributeService; _logger = logger; _orderTotalCalculationService = orderTotalCalculationService; _pictureService = pictureService; _priceCalculationService = priceCalculationService; _productAttributeParser = productAttributeParser; _shippingPluginManager = shippingPluginManager; _shoppingCartService = shoppingCartService; _storeContext = storeContext; _urlHelperFactory = urlHelperFactory; _urlRecordService = urlRecordService; _webHelper = webHelper; _workContext = workContext; _sendinBlueSettings = sendinBlueSettings; }
public IyzicoPaymentProcessor(ISettingService settingService, IPaymentIyzicoService iyzicoService, IyzicoPaymentSettings iyzicoPaymentSettings, IWebHelper webHelper, ILocalizationService localizationService, ICustomerService customerService, IAddressService addressService, IProductService productService, ICategoryService categoryService, IShoppingCartService shoppingCartService, IPriceCalculationService priceCalculationService, IPaymentService paymentService, IHttpContextAccessor httpContextAccessor, IOrderTotalCalculationService orderTotalCalculationService, IWorkContext workContext, IShippingPluginManager shippingPluginManager, IStoreContext storeContext, IUrlHelperFactory urlHelperFactory, IActionContextAccessor actionContextAccessor, ITaxService taxService, ICurrencyService currencyService) { this._settingService = settingService; this._iyzicoService = iyzicoService; this._iyzicoPaymentSettings = iyzicoPaymentSettings; this._webHelper = webHelper; this._localizationService = localizationService; this._customerService = customerService; this._addressService = addressService; this._productService = productService; this._categoryService = categoryService; this._shoppingCartService = shoppingCartService; this._priceCalculationService = priceCalculationService; this._paymentService = paymentService; this._httpContextAccessor = httpContextAccessor; this._orderTotalCalculationService = orderTotalCalculationService; this._workContext = workContext; this._shippingPluginManager = shippingPluginManager; this._storeContext = storeContext; this._urlHelperFactory = urlHelperFactory; this._actionContextAccessor = actionContextAccessor; this._taxService = taxService; this._currencyService = currencyService; }
public CommonModelFactory(AdminAreaSettings adminAreaSettings, CatalogSettings catalogSettings, CurrencySettings currencySettings, IActionContextAccessor actionContextAccessor, IAuthenticationPluginManager authenticationPluginManager, ICurrencyService currencyService, ICustomerService customerService, IDateTimeHelper dateTimeHelper, INopFileProvider fileProvider, IExchangeRatePluginManager exchangeRatePluginManager, IHttpContextAccessor httpContextAccessor, ILanguageService languageService, ILocalizationService localizationService, IMaintenanceService maintenanceService, IMeasureService measureService, IOrderService orderService, IPaymentPluginManager paymentPluginManager, IPickupPluginManager pickupPluginManager, IPluginService pluginService, IProductService productService, IReturnRequestService returnRequestService, ISearchTermService searchTermService, IShippingPluginManager shippingPluginManager, IStaticCacheManager cacheManager, IStoreContext storeContext, IStoreService storeService, ITaxPluginManager taxPluginManager, IUrlHelperFactory urlHelperFactory, IUrlRecordService urlRecordService, IWebHelper webHelper, IWidgetPluginManager widgetPluginManager, IWorkContext workContext, MeasureSettings measureSettings, NopConfig nopConfig, NopHttpClient nopHttpClient, ProxySettings proxySettings) { _adminAreaSettings = adminAreaSettings; _catalogSettings = catalogSettings; _currencySettings = currencySettings; _actionContextAccessor = actionContextAccessor; _authenticationPluginManager = authenticationPluginManager; _currencyService = currencyService; _customerService = customerService; _dateTimeHelper = dateTimeHelper; _exchangeRatePluginManager = exchangeRatePluginManager; _httpContextAccessor = httpContextAccessor; _languageService = languageService; _localizationService = localizationService; _maintenanceService = maintenanceService; _measureService = measureService; _fileProvider = fileProvider; _orderService = orderService; _paymentPluginManager = paymentPluginManager; _pickupPluginManager = pickupPluginManager; _pluginService = pluginService; _productService = productService; _returnRequestService = returnRequestService; _searchTermService = searchTermService; _shippingPluginManager = shippingPluginManager; _cacheManager = cacheManager; _storeContext = storeContext; _storeService = storeService; _taxPluginManager = taxPluginManager; _urlHelperFactory = urlHelperFactory; _urlRecordService = urlRecordService; _webHelper = webHelper; _widgetPluginManager = widgetPluginManager; _workContext = workContext; _measureSettings = measureSettings; _nopConfig = nopConfig; _nopHttpClient = nopHttpClient; _proxySettings = proxySettings; }
public OverriddenShoppingCartModelFactory(AddressSettings addressSettings, CaptchaSettings captchaSettings, CatalogSettings catalogSettings, CommonSettings commonSettings, CustomerSettings customerSettings, IAddressModelFactory addressModelFactory, ICheckoutAttributeFormatter checkoutAttributeFormatter, ICheckoutAttributeParser checkoutAttributeParser, ICheckoutAttributeService checkoutAttributeService, ICountryService countryService, ICurrencyService currencyService, ICustomerService customerService, IDiscountService discountService, IDownloadService downloadService, IGenericAttributeService genericAttributeService, IGiftCardService giftCardService, IHttpContextAccessor httpContextAccessor, ILocalizationService localizationService, IOrderProcessingService orderProcessingService, IOrderTotalCalculationService orderTotalCalculationService, IPaymentPluginManager paymentPluginManager, IPaymentService paymentService, IPermissionService permissionService, IPictureService pictureService, IPriceCalculationService priceCalculationService, IPriceFormatter priceFormatter, IProductAttributeFormatter productAttributeFormatter, IProductService productService, IShippingPluginManager shippingPluginManager, IShippingService shippingService, IShoppingCartService shoppingCartService, IStateProvinceService stateProvinceService, IStaticCacheManager cacheManager, IStoreContext storeContext, ITaxPluginManager taxPluginManager, ITaxService taxService, IUrlRecordService urlRecordService, IVendorService vendorService, IWebHelper webHelper, IWorkContext workContext, MediaSettings mediaSettings, OrderSettings orderSettings, RewardPointsSettings rewardPointsSettings, ShippingSettings shippingSettings, ShoppingCartSettings shoppingCartSettings, TaxSettings taxSettings, VendorSettings vendorSettings) : base(addressSettings, captchaSettings, catalogSettings, commonSettings, customerSettings, addressModelFactory, checkoutAttributeFormatter, checkoutAttributeParser, checkoutAttributeService, countryService, currencyService, customerService, discountService, downloadService, genericAttributeService, giftCardService, httpContextAccessor, localizationService, orderProcessingService, orderTotalCalculationService, paymentPluginManager, paymentService, permissionService, pictureService, priceCalculationService, priceFormatter, productAttributeFormatter, productService, shippingPluginManager, shippingService, shoppingCartService, stateProvinceService, cacheManager, storeContext, taxService, urlRecordService, vendorService, webHelper, workContext, mediaSettings, orderSettings, rewardPointsSettings, shippingSettings, shoppingCartSettings, taxSettings, vendorSettings) { _countryService = countryService; _currencyService = currencyService; _genericAttributeService = genericAttributeService; _giftCardService = giftCardService; _httpContextAccessor = httpContextAccessor; _orderTotalCalculationService = orderTotalCalculationService; _paymentService = paymentService; _priceCalculationService = priceCalculationService; _priceFormatter = priceFormatter; _shippingPluginManager = shippingPluginManager; _shoppingCartService = shoppingCartService; _stateProvinceService = stateProvinceService; _storeContext = storeContext; _taxPluginManager = taxPluginManager; _taxService = taxService; _workContext = workContext; _rewardPointsSettings = rewardPointsSettings; _shippingSettings = shippingSettings; _taxSettings = taxSettings; }
public new void SetUp() { _productService = new Mock <IProductService>(); _discountService = new Mock <IDiscountService>(); _categoryService = new Mock <ICategoryService>(); _manufacturerService = new Mock <IManufacturerService>(); _productAttributeParser = new Mock <IProductAttributeParser>(); _eventPublisher = new Mock <IEventPublisher>(); _localizationService = new Mock <ILocalizationService>(); _shippingMethodRepository = new Mock <IRepository <ShippingMethod> >(); _warehouseRepository = new Mock <IRepository <Warehouse> >(); _shipmentService = new Mock <IShipmentService>(); _paymentService = new Mock <IPaymentService>(); _checkoutAttributeParser = new Mock <ICheckoutAttributeParser>(); _giftCardService = new Mock <IGiftCardService>(); _genericAttributeService = new Mock <IGenericAttributeService>(); _geoLookupService = new Mock <IGeoLookupService>(); _countryService = new Mock <ICountryService>(); _stateProvinceService = new Mock <IStateProvinceService>(); _eventPublisher = new Mock <IEventPublisher>(); _addressService = new Mock <IAddressService>(); _rewardPointService = new Mock <IRewardPointService>(); _webHelper = new Mock <IWebHelper>(); _languageService = new Mock <ILanguageService>(); _priceFormatter = new Mock <IPriceFormatter>(); _productAttributeFormatter = new Mock <IProductAttributeFormatter>(); _shoppingCartService = new Mock <IShoppingCartService>(); _checkoutAttributeFormatter = new Mock <ICheckoutAttributeFormatter>(); _customerService = new Mock <ICustomerService>(); _encryptionService = new Mock <IEncryptionService>(); _workflowMessageService = new Mock <IWorkflowMessageService>(); _customerActivityService = new Mock <ICustomerActivityService>(); _currencyService = new Mock <ICurrencyService>(); _affiliateService = new Mock <IAffiliateService>(); _vendorService = new Mock <IVendorService>(); _pdfService = new Mock <IPdfService>(); _customNumberFormatter = new Mock <ICustomNumberFormatter>(); _rewardPointService = new Mock <IRewardPointService>(); _workContext = null; //setup _storeContext = new Mock <IStoreContext>(); _store = new Store { Id = 1 }; _storeContext.Setup(x => x.CurrentStore).Returns(_store); _catalogSettings = new CatalogSettings(); var cacheManager = new TestCacheManager(); _currencySettings = new CurrencySettings(); //price calculation service _priceCalcService = new PriceCalculationService(_catalogSettings, _currencySettings, _categoryService.Object, _currencyService.Object, _customerService.Object, _discountService.Object, _manufacturerService.Object, _productAttributeParser.Object, _productService.Object, cacheManager, _storeContext.Object, _workContext); _eventPublisher.Setup(x => x.Publish(It.IsAny <object>())); var pluginService = new FakePluginService(_catalogSettings); _paymentPluginManager = new PaymentPluginManager(pluginService, null, _paymentSettings); _pickupPluginManager = new PickupPluginManager(pluginService, _shippingSettings); _shippingPluginManager = new ShippingPluginManager(pluginService, _shippingSettings); _taxPluginManager = new TaxPluginManager(pluginService, _taxSettings); _shoppingCartSettings = new ShoppingCartSettings(); //shipping _shippingSettings = new ShippingSettings { ActiveShippingRateComputationMethodSystemNames = new List <string>() }; _shippingSettings.ActiveShippingRateComputationMethodSystemNames.Add("FixedRateTestShippingRateComputationMethod"); _logger = new NullLogger(); _customerSettings = new CustomerSettings(); _addressSettings = new AddressSettings(); var shippingMethodCountryMappingRepository = new Mock <IRepository <ShippingMethodCountryMapping> >(); _shippingService = new ShippingService(_addressService.Object, _checkoutAttributeParser.Object, _countryService.Object, _customerService.Object, _eventPublisher.Object, _genericAttributeService.Object, _localizationService.Object, _logger, _pickupPluginManager, _priceCalcService, _productAttributeParser.Object, _productService.Object, _shippingMethodRepository.Object, shippingMethodCountryMappingRepository.Object, _warehouseRepository.Object, _shippingPluginManager, _stateProvinceService.Object, _storeContext.Object, _shippingSettings, _shoppingCartSettings); //tax _taxSettings = new TaxSettings { ShippingIsTaxable = true, PaymentMethodAdditionalFeeIsTaxable = true, DefaultTaxAddressId = 10 }; _addressService.Setup(x => x.GetAddressById(_taxSettings.DefaultTaxAddressId)).Returns(new Address { Id = _taxSettings.DefaultTaxAddressId }); _taxService = new TaxService(_addressSettings, _customerSettings, _addressService.Object, _countryService.Object, _customerService.Object, _genericAttributeService.Object, _geoLookupService.Object, _logger, _stateProvinceService.Object, _storeContext.Object, _taxPluginManager, _webHelper.Object, _workContext, _shippingSettings, _taxSettings); _rewardPointsSettings = new RewardPointsSettings(); _recurringPaymentRepository = new Mock <IRepository <RecurringPayment> >(); var recurringPayments = new List <RecurringPayment>(); _recurringPaymentRepository.Setup(r => r.Insert(It.IsAny <RecurringPayment>())).Callback((RecurringPayment rph) => recurringPayments.Add(rph)); _recurringPaymentRepository.Setup(r => r.Table).Returns(recurringPayments.AsQueryable()); _recurringPaymentHistoryRepository = new Mock <IRepository <RecurringPaymentHistory> >(); var recurringPaymentHistory = new List <RecurringPaymentHistory>(); _recurringPaymentHistoryRepository.Setup(r => r.Insert(It.IsAny <RecurringPaymentHistory>())).Callback((RecurringPaymentHistory rph) => recurringPaymentHistory.Add(rph)); _recurringPaymentHistoryRepository.Setup(r => r.Table).Returns(recurringPaymentHistory.AsQueryable()); _orderService = new OrderService(_eventPublisher.Object, null, null, null, null, null, null, null, null, _recurringPaymentRepository.Object, _recurringPaymentHistoryRepository.Object, _shipmentService.Object); _orderTotalCalcService = new OrderTotalCalculationService(_catalogSettings, _addressService.Object, _checkoutAttributeParser.Object, _customerService.Object, _discountService.Object, _genericAttributeService.Object, _giftCardService.Object, _orderService, _paymentService.Object, _priceCalcService, _productService.Object, _rewardPointService.Object, _shippingPluginManager, _shippingService, _shoppingCartService.Object, _storeContext.Object, _taxService, _workContext, _rewardPointsSettings, _shippingSettings, _shoppingCartSettings, _taxSettings); _paymentSettings = new PaymentSettings { ActivePaymentMethodSystemNames = new List <string> { "Payments.TestMethod" } }; _orderSettings = new OrderSettings(); _localizationSettings = new LocalizationSettings(); _eventPublisher.Setup(x => x.Publish(It.IsAny <object>())); _orderProcessingService = new OrderProcessingService(_currencySettings, _addressService.Object, _affiliateService.Object, _checkoutAttributeFormatter.Object, _countryService.Object, _currencyService.Object, _customerActivityService.Object, _customerService.Object, _customNumberFormatter.Object, _discountService.Object, _encryptionService.Object, _eventPublisher.Object, _genericAttributeService.Object, _giftCardService.Object, _languageService.Object, _localizationService.Object, _logger, _orderService, _orderTotalCalcService, _paymentPluginManager, _paymentService.Object, _pdfService.Object, _priceCalcService, _priceFormatter.Object, _productAttributeFormatter.Object, _productAttributeParser.Object, _productService.Object, _rewardPointService.Object, _shipmentService.Object, _shippingPluginManager, _shippingService, _shoppingCartService.Object, _stateProvinceService.Object, _storeContext.Object, _taxService, _vendorService.Object, _webHelper.Object, _workContext, _workflowMessageService.Object, _localizationSettings, _orderSettings, _paymentSettings, _rewardPointsSettings, _shippingSettings, _taxSettings); }
public void SetUp() { _shippingPluginManager = GetService <IShippingPluginManager>(); _shippingService = GetService <IShippingService>(); _productService = GetService <IProductService>(); }
public new void SetUp() { _shippingSettings = new ShippingSettings { UseCubeRootMethod = true, ConsiderAssociatedProductsDimensions = true, ShipSeparatelyOneItemEach = false }; _shippingMethodRepository = new Mock <IRepository <ShippingMethod> >(); _warehouseRepository = new Mock <IRepository <Warehouse> >(); _logger = new NullLogger(); _productAttributeParser = new Mock <IProductAttributeParser>(); _checkoutAttributeParser = new Mock <ICheckoutAttributeParser>(); var cacheManager = new TestCacheManager(); _productService = new Mock <IProductService>(); _eventPublisher = new Mock <IEventPublisher>(); _eventPublisher.Setup(x => x.Publish(It.IsAny <object>())); var customerService = new Mock <ICustomerService>(); var loger = new Mock <ILogger>(); var webHelper = new Mock <IWebHelper>(); _catalogSettings = new CatalogSettings(); var pluginService = new PluginService(_catalogSettings, customerService.Object, loger.Object, CommonHelper.DefaultFileProvider, webHelper.Object); _pickupPluginManager = new PickupPluginManager(pluginService, _shippingSettings); _shippingPluginManager = new ShippingPluginManager(pluginService, _shippingSettings); _localizationService = new Mock <ILocalizationService>(); _addressService = new Mock <IAddressService>(); _genericAttributeService = new Mock <IGenericAttributeService>(); _priceCalcService = new Mock <IPriceCalculationService>(); _store = new Store { Id = 1 }; _storeContext = new Mock <IStoreContext>(); _storeContext.Setup(x => x.CurrentStore).Returns(_store); _shoppingCartSettings = new ShoppingCartSettings(); _shippingService = new ShippingService(_addressService.Object, cacheManager, _checkoutAttributeParser.Object, _eventPublisher.Object, _genericAttributeService.Object, _localizationService.Object, _logger, _pickupPluginManager, _priceCalcService.Object, _productAttributeParser.Object, _productService.Object, _shippingMethodRepository.Object, _warehouseRepository.Object, _shippingPluginManager, _storeContext.Object, _shippingSettings, _shoppingCartSettings); }
public OverriddenOrderProcessingService(CurrencySettings currencySettings, IAffiliateService affiliateService, ICheckoutAttributeFormatter checkoutAttributeFormatter, ICountryService countryService, ICurrencyService currencyService, ICustomerActivityService customerActivityService, ICustomerService customerService, ICustomNumberFormatter customNumberFormatter, IDiscountService discountService, IEncryptionService encryptionService, IEventPublisher eventPublisher, IGenericAttributeService genericAttributeService, IGiftCardService giftCardService, IHttpContextAccessor httpContextAccessor, ILanguageService languageService, ILocalizationService localizationService, ILogger logger, IOrderService orderService, IOrderTotalCalculationService orderTotalCalculationService, IPaymentPluginManager paymentPluginManager, IPaymentService paymentService, IPdfService pdfService, IPriceCalculationService priceCalculationService, IPriceFormatter priceFormatter, IProductAttributeFormatter productAttributeFormatter, IProductAttributeParser productAttributeParser, IProductService productService, IRewardPointService rewardPointService, IShipmentService shipmentService, IShippingPluginManager shippingPluginManager, IShippingService shippingService, IShoppingCartService shoppingCartService, IStateProvinceService stateProvinceService, IStoreContext storeContext, ITaxService taxService, IVendorService vendorService, IWebHelper webHelper, IWorkContext workContext, IWorkflowMessageService workflowMessageService, LocalizationSettings localizationSettings, OrderSettings orderSettings, PaymentSettings paymentSettings, RewardPointsSettings rewardPointsSettings, ShippingSettings shippingSettings, TaxSettings taxSettings) : base(currencySettings, affiliateService, checkoutAttributeFormatter, countryService, currencyService, customerActivityService, customerService, customNumberFormatter, discountService, encryptionService, eventPublisher, genericAttributeService, giftCardService, languageService, localizationService, logger, orderService, orderTotalCalculationService, paymentPluginManager, paymentService, pdfService, priceCalculationService, priceFormatter, productAttributeFormatter, productAttributeParser, productService, rewardPointService, shipmentService, shippingPluginManager, shippingService, shoppingCartService, stateProvinceService, storeContext, taxService, vendorService, webHelper, workContext, workflowMessageService, localizationSettings, orderSettings, paymentSettings, rewardPointsSettings, shippingSettings, taxSettings) { _currencySettings = currencySettings; _affiliateService = affiliateService; _checkoutAttributeFormatter = checkoutAttributeFormatter; _countryService = countryService; _currencyService = currencyService; _customerService = customerService; _discountService = discountService; _genericAttributeService = genericAttributeService; _httpContextAccessor = httpContextAccessor; _languageService = languageService; _localizationService = localizationService; _orderTotalCalculationService = orderTotalCalculationService; _paymentService = paymentService; _priceFormatter = priceFormatter; _shippingPluginManager = shippingPluginManager; _shoppingCartService = shoppingCartService; _stateProvinceService = stateProvinceService; _storeContext = storeContext; _taxService = taxService; _workContext = workContext; _orderSettings = orderSettings; _shippingSettings = shippingSettings; _taxSettings = taxSettings; }
public EasyPostTracker(EasyPostService easyPostService, IShippingPluginManager shippingPluginManager) { _easyPostService = easyPostService; _shippingPluginManager = shippingPluginManager; }
public ShippingMethodsViewComponentName(EasyPostSettings easyPostSettings, IShippingPluginManager shippingPluginManager) { _easyPostSettings = easyPostSettings; _shippingPluginManager = shippingPluginManager; }
public IyzicoPaymentProcessor(ISettingService settingService, IPaymentIyzicoService iyzicoService, IyzicoPaymentSettings iyzicoPaymentSettings, IWebHelper webHelper, ILocalizationService localizationService, ICustomerService customerService, IShoppingCartService shoppingCartService, IPriceCalculationService priceCalculationService, IPaymentService paymentService, IHttpContextAccessor httpContextAccessor, IOrderTotalCalculationService orderTotalCalculationService, IWorkContext workContext, IShippingPluginManager shippingPluginManager, IStoreContext storeContext) { this._settingService = settingService; this._iyzicoService = iyzicoService; this._iyzicoPaymentSettings = iyzicoPaymentSettings; this._webHelper = webHelper; this._localizationService = localizationService; this._customerService = customerService; this._shoppingCartService = shoppingCartService; this._priceCalculationService = priceCalculationService; this._paymentService = paymentService; this._httpContextAccessor = httpContextAccessor; this._orderTotalCalculationService = orderTotalCalculationService; this._workContext = workContext; this._shippingPluginManager = shippingPluginManager; this._storeContext = storeContext; }
public new void SetUp() { _shippingSettings = new ShippingSettings { ActiveShippingRateComputationMethodSystemNames = new List <string>() }; _shippingSettings.ActiveShippingRateComputationMethodSystemNames.Add("FixedRateTestShippingRateComputationMethod"); _shippingMethodRepository = new Mock <IRepository <ShippingMethod> >(); _warehouseRepository = new Mock <IRepository <Warehouse> >(); _logger = new NullLogger(); _productAttributeParser = new Mock <IProductAttributeParser>(); _checkoutAttributeParser = new Mock <ICheckoutAttributeParser>(); var cacheManager = new TestCacheManager(); _productService = new Mock <IProductService>(); _eventPublisher = new Mock <IEventPublisher>(); _eventPublisher.Setup(x => x.Publish(It.IsAny <object>())); var customerService = new Mock <ICustomerService>(); var loger = new Mock <ILogger>(); var webHelper = new Mock <IWebHelper>(); _catalogSettings = new CatalogSettings(); var pluginService = new PluginService(_catalogSettings, customerService.Object, loger.Object, CommonHelper.DefaultFileProvider, webHelper.Object); _pickupPluginManager = new PickupPluginManager(pluginService, _shippingSettings); _shippingPluginManager = new ShippingPluginManager(pluginService, _shippingSettings); _localizationService = new Mock <ILocalizationService>(); _addressService = new Mock <IAddressService>(); _genericAttributeService = new Mock <IGenericAttributeService>(); _priceCalcService = new Mock <IPriceCalculationService>(); _store = new Store { Id = 1 }; _storeContext = new Mock <IStoreContext>(); _storeContext.Setup(x => x.CurrentStore).Returns(_store); _shoppingCartSettings = new ShoppingCartSettings(); _shippingService = new ShippingService(_addressService.Object, cacheManager, _checkoutAttributeParser.Object, _eventPublisher.Object, _genericAttributeService.Object, _localizationService.Object, _logger, _pickupPluginManager, _priceCalcService.Object, _productAttributeParser.Object, _productService.Object, _shippingMethodRepository.Object, _warehouseRepository.Object, _shippingPluginManager, _storeContext.Object, _shippingSettings, _shoppingCartSettings); }