public OrderTotalsViewComponent(
     SmartDbContext db,
     ITaxService taxService,
     ITaxCalculator taxCalculator,
     ICurrencyService currencyService,
     IGiftCardService giftCardService,
     IShoppingCartService shoppingCartService,
     ILocalizationService localizationService,
     IOrderCalculationService orderCalculationService,
     ShoppingCartSettings shoppingCartSettings,
     MeasureSettings measureSettings,
     TaxSettings taxSettings)
 {
     _db                      = db;
     _taxService              = taxService;
     _taxCalculator           = taxCalculator;
     _currencyService         = currencyService;
     _giftCardService         = giftCardService;
     _shoppingCartService     = shoppingCartService;
     _localizationService     = localizationService;
     _orderCalculationService = orderCalculationService;
     _shoppingCartSettings    = shoppingCartSettings;
     _measureSettings         = measureSettings;
     _taxSettings             = taxSettings;
 }
Пример #2
0
 public ResultsController(ITestResultService testResultService, IEventCustomerResultRepository eventCustomerResultRepository, IHealthAssessmentService healthAssessmentService, ISessionContext sessionContext,
                          ISettings settings, ICustomerService customerService, ILogManager logManager, IPdfGenerator pdfGenerator, IMediaRepository mediaRepository, IConfigurationSettingRepository configurationSettingRepository,
                          IKynHealthAssessmentService kynHealthAssessmentService, IGenerateKynLipidService generateKynLipidService, IFluVaccinationConsentService vaccinationConsentService, IEventCustomerRepository eventCustomerRepository
                          , IPriorityInQueueService priorityInQueueService, ICustomerEventPriorityInQueueDataRepository priorityInQueueRepository, IEventRepository eventRepository, INewResultFlowStateService newResultFlowStateService,
                          IGiftCardService giftCardService, IParticipationConsentService participationConsentService, IChaperoneService chaperoneService)
 {
     _customerService               = customerService;
     _testResultService             = testResultService;
     _eventCustomerResultRepository = eventCustomerResultRepository;
     _healthAssessmentService       = healthAssessmentService;
     _sessionContext = sessionContext;
     _pageSize       = settings.DefaultPageSizeForReports;
     _logger         = logManager.GetLogger <Global>();
     _pdfGenerator   = pdfGenerator;
     _pdfGenerator.AllowLoadingJavascriptbeforePdfGenerate = true;
     _mediaRepository = mediaRepository;
     _settings        = settings;
     _configurationSettingRepository = configurationSettingRepository;
     _kynHealthAssessmentService     = kynHealthAssessmentService;
     _generateKynLipidService        = generateKynLipidService;
     _vaccinationConsentService      = vaccinationConsentService;
     _eventCustomerRepository        = eventCustomerRepository;
     _priorityInQueueService         = priorityInQueueService;
     _priorityInQueueRepository      = priorityInQueueRepository;
     _eventRepository             = eventRepository;
     _newResultFlowStateService   = newResultFlowStateService;
     _giftCardService             = giftCardService;
     _participationConsentService = participationConsentService;
     _chaperoneService            = chaperoneService;
 }
 public GetOrderDetailsHandler(IDateTimeHelper dateTimeHelper, IProductService productService, IProductAttributeParser productAttributeParser,
                               ILocalizationService localizationService,
                               IOrderProcessingService orderProcessingService, IShipmentService shipmentService, IPaymentService paymentService,
                               ICurrencyService currencyService, IPriceFormatter priceFormatter, IGiftCardService giftCardService, IOrderService orderService,
                               IPictureService pictureService, IDownloadService downloadService, IMediator mediator,
                               CatalogSettings catalogSettings, OrderSettings orderSettings, PdfSettings pdfSettings, TaxSettings taxSettings)
 {
     _dateTimeHelper         = dateTimeHelper;
     _productService         = productService;
     _productAttributeParser = productAttributeParser;
     _localizationService    = localizationService;
     _orderProcessingService = orderProcessingService;
     _shipmentService        = shipmentService;
     _paymentService         = paymentService;
     _currencyService        = currencyService;
     _priceFormatter         = priceFormatter;
     _giftCardService        = giftCardService;
     _orderService           = orderService;
     _pictureService         = pictureService;
     _downloadService        = downloadService;
     _mediator        = mediator;
     _orderSettings   = orderSettings;
     _catalogSettings = catalogSettings;
     _pdfSettings     = pdfSettings;
     _taxSettings     = taxSettings;
 }
Пример #4
0
 public CustomOrderProcessingService(
     IPluginFinder pluginFinder,
     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, IPdfService pdfService,
     IRewardPointService rewardPointService, IGenericAttributeService genericAttributeService,
     ICountryService countryService, ShippingSettings shippingSettings, PaymentSettings paymentSettings,
     RewardPointsSettings rewardPointsSettings, OrderSettings orderSettings, TaxSettings taxSettings,
     LocalizationSettings localizationSettings, CurrencySettings currencySettings) :
     base(orderService, webHelper, localizationService, languageService, productService, paymentService, logger,
          orderTotalCalculationService, priceCalculationService, priceFormatter, productAttributeParser,
          productAttributeFormatter, giftCardService, shoppingCartService, checkoutAttributeFormatter,
          shippingService, shipmentService, taxService, customerService, discountService, encryptionService,
          workContext, workflowMessageService, vendorService, customerActivityService, currencyService,
          affiliateService, eventPublisher, pdfService, rewardPointService, genericAttributeService, countryService,
          shippingSettings, paymentSettings, rewardPointsSettings, orderSettings, taxSettings, localizationSettings, currencySettings)
 {
     _pluginFinder = pluginFinder;
 }
 public GetOrderTokensCommandHandler(
     ILanguageService languageService,
     ICurrencyService currencyService,
     IProductService productService,
     IDownloadService downloadService,
     IVendorService vendorService,
     IPriceFormatter priceFormatter,
     IProductAttributeParser productAttributeParser,
     ICountryService countryService,
     IStateProvinceService stateProvinceService,
     IAddressAttributeFormatter addressAttributeFormatter,
     IPaymentService paymentService,
     ILocalizationService localizationService,
     IGiftCardService giftCardService,
     CatalogSettings catalogSettings,
     TaxSettings taxSettings)
 {
     _languageService           = languageService;
     _currencyService           = currencyService;
     _productService            = productService;
     _downloadService           = downloadService;
     _vendorService             = vendorService;
     _priceFormatter            = priceFormatter;
     _productAttributeParser    = productAttributeParser;
     _countryService            = countryService;
     _stateProvinceService      = stateProvinceService;
     _addressAttributeFormatter = addressAttributeFormatter;
     _paymentService            = paymentService;
     _localizationService       = localizationService;
     _giftCardService           = giftCardService;
     _catalogSettings           = catalogSettings;
     _taxSettings = taxSettings;
 }
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="workContext">Work context</param>
 /// <param name="storeContext">Store context</param>
 /// <param name="priceCalculationService">Price calculation service</param>
 /// <param name="taxService">Tax service</param>
 /// <param name="shippingService">Shipping service</param>
 /// <param name="paymentService">Payment service</param>
 /// <param name="checkoutAttributeParser">Checkout attribute parser</param>
 /// <param name="discountService">Discount service</param>
 /// <param name="giftCardService">Gift card service</param>
 /// <param name="genericAttributeService">Generic attribute service</param>
 /// <param name="taxSettings">Tax settings</param>
 /// <param name="rewardPointsSettings">Reward points settings</param>
 /// <param name="shippingSettings">Shipping settings</param>
 /// <param name="shoppingCartSettings">Shopping cart settings</param>
 /// <param name="catalogSettings">Catalog settings</param>
 public OrderTotalCalculationService(IWorkContext workContext,
                                     IStoreContext storeContext,
                                     IPriceCalculationService priceCalculationService,
                                     ITaxService taxService,
                                     IShippingService shippingService,
                                     IPaymentService paymentService,
                                     ICheckoutAttributeParser checkoutAttributeParser,
                                     IDiscountService discountService,
                                     IGiftCardService giftCardService,
                                     IGenericAttributeService genericAttributeService,
                                     TaxSettings taxSettings,
                                     RewardPointsSettings rewardPointsSettings,
                                     ShippingSettings shippingSettings,
                                     ShoppingCartSettings shoppingCartSettings,
                                     CatalogSettings catalogSettings)
 {
     this._workContext             = workContext;
     this._storeContext            = storeContext;
     this._priceCalculationService = priceCalculationService;
     this._taxService              = taxService;
     this._shippingService         = shippingService;
     this._paymentService          = paymentService;
     this._checkoutAttributeParser = checkoutAttributeParser;
     this._discountService         = discountService;
     this._giftCardService         = giftCardService;
     this._genericAttributeService = genericAttributeService;
     this._taxSettings             = taxSettings;
     this._rewardPointsSettings    = rewardPointsSettings;
     this._shippingSettings        = shippingSettings;
     this._shoppingCartSettings    = shoppingCartSettings;
     this._catalogSettings         = catalogSettings;
 }
Пример #7
0
 public GestPayPaymentProcessor(GestPayPaymentSettings gestPayPaymentSettings,
                                IAddressService addressService,
                                ICustomerService customerService,
                                ICountryService countryService,
                                IGiftCardService giftCardService,
                                IHttpContextAccessor httpContextAccessor,
                                ILocalizationService localizationService,
                                IManufacturerService manufacturerService,
                                IOrderService orderService,
                                IPaymentService paymentService,
                                IProductService productService,
                                IScheduleTaskService scheduleTaskService,
                                ISettingService settingService,
                                IStateProvinceService stateProvinceService,
                                IStoreContext storeContext,
                                IWebHelper webHelper)
 {
     _gestPayPaymentSettings = gestPayPaymentSettings;
     _addressService         = addressService;
     _customerService        = customerService;
     _countryService         = countryService;
     _giftCardService        = giftCardService;
     _httpContextAccessor    = httpContextAccessor;
     _localizationService    = localizationService;
     _manufacturerService    = manufacturerService;
     _orderService           = orderService;
     _paymentService         = paymentService;
     _productService         = productService;
     _scheduleTaskService    = scheduleTaskService;
     _settingService         = settingService;
     _stateProvinceService   = stateProvinceService;
     _storeContext           = storeContext;
     _webHelper = webHelper;
 }
Пример #8
0
 public new void SetUp()
 {
     _storeService                  = MockRepository.GenerateMock <IStoreService>();
     _categoryService               = MockRepository.GenerateMock <ICategoryService>();
     _manufacturerService           = MockRepository.GenerateMock <IManufacturerService>();
     _productAttributeService       = MockRepository.GenerateMock <IProductAttributeService>();
     _pictureService                = MockRepository.GenerateMock <IPictureService>();
     _newsLetterSubscriptionService = MockRepository.GenerateMock <INewsLetterSubscriptionService>();
     _productEditorSettings         = new ProductEditorSettings();
     _workContext            = MockRepository.GenerateMock <IWorkContext>();
     _vendorService          = MockRepository.GenerateMock <IVendorService>();
     _productTemplateService = MockRepository.GenerateMock <IProductTemplateService>();
     _shippingService        = MockRepository.GenerateMock <IShippingService>();
     _taxCategoryService     = MockRepository.GenerateMock <ITaxCategoryService>();
     _measureService         = MockRepository.GenerateMock <IMeasureService>();
     _catalogSettings        = new CatalogSettings();
     _discountService        = MockRepository.GenerateMock <IDiscountService>(); //NOP 3.826
     _giftCardService        = MockRepository.GenerateMock <IGiftCardService>(); //NOP 3.830
     _exportManager          = new ExportManager(_categoryService,
                                                 _manufacturerService, _productAttributeService,
                                                 _pictureService, _newsLetterSubscriptionService,
                                                 _storeService, _workContext, _productEditorSettings,
                                                 _vendorService, _productTemplateService, _shippingService,
                                                 _taxCategoryService, _measureService, _catalogSettings,
                                                 _discountService,  //NOP 3.826
                                                 _giftCardService); //NOP 3.830
 }
Пример #9
0
 public OrderHelper(
     SmartDbContext db,
     ICommonServices services,
     IDateTimeHelper dateTimeHelper,
     IMediaService mediaService,
     IOrderService orderService,
     IOrderProcessingService orderProcessingService,
     IPaymentService paymentService,
     ICurrencyService currencyService,
     ITaxService taxService,
     IGiftCardService giftCardService,
     IProductAttributeMaterializer productAttributeMaterializer,
     ProductUrlHelper productUrlHelper,
     IEncryptor encryptor)
 {
     _db                           = db;
     _services                     = services;
     _dateTimeHelper               = dateTimeHelper;
     _mediaService                 = mediaService;
     _orderService                 = orderService;
     _orderProcessingService       = orderProcessingService;
     _paymentService               = paymentService;
     _currencyService              = currencyService;
     _taxService                   = taxService;
     _giftCardService              = giftCardService;
     _productAttributeMaterializer = productAttributeMaterializer;
     _productUrlHelper             = productUrlHelper;
     _encryptor                    = encryptor;
 }
Пример #10
0
 public OrderCalculationService(
     SmartDbContext db,
     IPriceCalculationService priceCalculationService,
     IDiscountService discountService,
     IShippingService shippingService,
     IGiftCardService giftCardService,
     ICurrencyService currencyService,
     IProductAttributeMaterializer productAttributeMaterializer,
     ICheckoutAttributeMaterializer checkoutAttributeMaterializer,
     IProviderManager providerManager,
     IWorkContext workContext,
     IStoreContext storeContext,
     ITaxService taxService,
     TaxSettings taxSettings,
     RewardPointsSettings rewardPointsSettings,
     CatalogSettings catalogSettings,
     ShippingSettings shippingSettings)
 {
     _db = db;
     _priceCalculationService       = priceCalculationService;
     _discountService               = discountService;
     _shippingService               = shippingService;
     _giftCardService               = giftCardService;
     _currencyService               = currencyService;
     _productAttributeMaterializer  = productAttributeMaterializer;
     _checkoutAttributeMaterializer = checkoutAttributeMaterializer;
     _providerManager               = providerManager;
     _workContext          = workContext;
     _storeContext         = storeContext;
     _taxService           = taxService;
     _taxSettings          = taxSettings;
     _rewardPointsSettings = rewardPointsSettings;
     _catalogSettings      = catalogSettings;
     _shippingSettings     = shippingSettings;
 }
Пример #11
0
 public GiftCardValidator(
     IEnumerable <IValidatorConsumer <GiftCardModel> > validators,
     ILocalizationService localizationService, IGiftCardService giftCardService)
     : base(validators)
 {
     RuleFor(x => x.GiftCardCouponCode).NotEmpty().WithMessage(localizationService.GetResource("Admin.GiftCards.Fields.GiftCardCouponCode.Required"));
 }
Пример #12
0
        public OrderProcessingService(
            SmartDbContext db,
            IWorkContext workContext,
            IWebHelper webHelper,
            ILocalizationService localizationService,
            ICurrencyService currencyService,
            IPaymentService paymentService,
            IProductService productService,
            IProductAttributeMaterializer productAttributeMaterializer,
            IProductAttributeFormatter productAttributeFormatter,
            IOrderCalculationService orderCalculationService,
            ITaxService taxService,
            IShoppingCartService shoppingCartService,
            IShoppingCartValidator shoppingCartValidator,
            IShippingService shippingService,
            IGiftCardService giftCardService,
            INewsletterSubscriptionService newsletterSubscriptionService,
            ICheckoutAttributeFormatter checkoutAttributeFormatter,
            IEncryptor encryptor,
            IMessageFactory messageFactory,
            IEventPublisher eventPublisher,
            IActivityLogger activityLogger,
            RewardPointsSettings rewardPointsSettings,
            CatalogSettings catalogSettings,
            OrderSettings orderSettings,
            ShoppingCartSettings shoppingCartSettings,
            LocalizationSettings localizationSettings,
            TaxSettings taxSettings)
        {
            _db                            = db;
            _workContext                   = workContext;
            _webHelper                     = webHelper;
            _localizationService           = localizationService;
            _currencyService               = currencyService;
            _paymentService                = paymentService;
            _productService                = productService;
            _productAttributeMaterializer  = productAttributeMaterializer;
            _productAttributeFormatter     = productAttributeFormatter;
            _orderCalculationService       = orderCalculationService;
            _taxService                    = taxService;
            _shoppingCartService           = shoppingCartService;
            _shoppingCartValidator         = shoppingCartValidator;
            _shippingService               = shippingService;
            _giftCardService               = giftCardService;
            _newsletterSubscriptionService = newsletterSubscriptionService;
            _checkoutAttributeFormatter    = checkoutAttributeFormatter;
            _encryptor                     = encryptor;
            _messageFactory                = messageFactory;
            _eventPublisher                = eventPublisher;
            _activityLogger                = activityLogger;
            _rewardPointsSettings          = rewardPointsSettings;
            _catalogSettings               = catalogSettings;
            _orderSettings                 = orderSettings;
            _shoppingCartSettings          = shoppingCartSettings;
            _localizationSettings          = localizationSettings;
            _taxSettings                   = taxSettings;

            _primaryCurrency = currencyService.PrimaryCurrency;
            _workingCurrency = workContext.WorkingCurrency;
        }
        public new void SetUp()
        {
            base.SetUp();

            _eventPublisher = new Mock <IEventPublisher>();

            _giftCardRepository = new FakeRepository <GiftCard>();

            _giftCardRepository.Insert(
                new GiftCard
            {
                Id     = 1,
                Amount = 100,
                IsGiftCardActivated = true
            });

            _giftCardRepository.Insert(
                new GiftCard
            {
                Id     = 2,
                Amount = 100
            });

            _giftCardUsageHistoryRepository = new FakeRepository <GiftCardUsageHistory>();

            _orderItemRepository = new FakeRepository <OrderItem>();

            _giftCardService = new GiftCardService(null, _eventPublisher.Object, _giftCardRepository, _giftCardUsageHistoryRepository, _orderItemRepository);
        }
 public GiftCardController(CurrencySettings currencySettings,
                           ICurrencyService currencyService,
                           ICustomerActivityService customerActivityService,
                           IDateTimeHelper dateTimeHelper,
                           IGiftCardModelFactory giftCardModelFactory,
                           IGiftCardService giftCardService,
                           ILanguageService languageService,
                           ILocalizationService localizationService,
                           INotificationService notificationService,
                           IOrderService orderService,
                           IPermissionService permissionService,
                           IPriceFormatter priceFormatter,
                           IWorkflowMessageService workflowMessageService,
                           LocalizationSettings localizationSettings)
 {
     _currencySettings        = currencySettings;
     _currencyService         = currencyService;
     _customerActivityService = customerActivityService;
     _dateTimeHelper          = dateTimeHelper;
     _giftCardModelFactory    = giftCardModelFactory;
     _giftCardService         = giftCardService;
     _languageService         = languageService;
     _localizationService     = localizationService;
     _notificationService     = notificationService;
     _orderService            = orderService;
     _permissionService       = permissionService;
     _priceFormatter          = priceFormatter;
     _workflowMessageService  = workflowMessageService;
     _localizationSettings    = localizationSettings;
 }
Пример #15
0
 public OrderModelFactory(AddressSettings addressSettings,
                          CatalogSettings catalogSettings,
                          IAddressModelFactory addressModelFactory,
                          IAddressService addressService,
                          ICountryService countryService,
                          ICurrencyService currencyService,
                          ICustomerService customerService,
                          IDateTimeHelper dateTimeHelper,
                          IGiftCardService giftCardService,
                          ILocalizationService localizationService,
                          IOrderProcessingService orderProcessingService,
                          IOrderService orderService,
                          IOrderTotalCalculationService orderTotalCalculationService,
                          IPaymentPluginManager paymentPluginManager,
                          IPaymentService paymentService,
                          IPriceFormatter priceFormatter,
                          IProductService productService,
                          IRewardPointService rewardPointService,
                          IShipmentService shipmentService,
                          IStoreContext storeContext,
                          IUrlRecordService urlRecordService,
                          IVendorService vendorService,
                          IWorkContext workContext,
                          OrderSettings orderSettings,
                          PdfSettings pdfSettings,
                          RewardPointsSettings rewardPointsSettings,
                          ShippingSettings shippingSettings,
                          TaxSettings taxSettings,
                          VendorSettings vendorSettings)
 {
     _addressSettings              = addressSettings;
     _catalogSettings              = catalogSettings;
     _addressModelFactory          = addressModelFactory;
     _addressService               = addressService;
     _countryService               = countryService;
     _currencyService              = currencyService;
     _customerService              = customerService;
     _dateTimeHelper               = dateTimeHelper;
     _giftCardService              = giftCardService;
     _localizationService          = localizationService;
     _orderProcessingService       = orderProcessingService;
     _orderService                 = orderService;
     _orderTotalCalculationService = orderTotalCalculationService;
     _paymentPluginManager         = paymentPluginManager;
     _paymentService               = paymentService;
     _priceFormatter               = priceFormatter;
     _productService               = productService;
     _rewardPointService           = rewardPointService;
     _shipmentService              = shipmentService;
     _storeContext                 = storeContext;
     _urlRecordService             = urlRecordService;
     _vendorService                = vendorService;
     _workContext          = workContext;
     _orderSettings        = orderSettings;
     _pdfSettings          = pdfSettings;
     _rewardPointsSettings = rewardPointsSettings;
     _shippingSettings     = shippingSettings;
     _taxSettings          = taxSettings;
     _vendorSettings       = vendorSettings;
 }
Пример #16
0
 public ShoppingCartController(
     IStoreContext storeContext,
     IWorkContext workContext,
     IShoppingCartService shoppingCartService,
     ILocalizationService localizationService,
     IDiscountService discountService,
     ICustomerService customerService,
     IGiftCardService giftCardService,
     ICheckoutAttributeService checkoutAttributeService,
     IPermissionService permissionService,
     IDownloadService downloadService,
     IShoppingCartViewModelService shoppingCartViewModelService,
     IGenericAttributeService genericAttributeService,
     ShoppingCartSettings shoppingCartSettings,
     OrderSettings orderSettings)
 {
     this._workContext                  = workContext;
     this._storeContext                 = storeContext;
     this._shoppingCartService          = shoppingCartService;
     this._localizationService          = localizationService;
     this._discountService              = discountService;
     this._customerService              = customerService;
     this._giftCardService              = giftCardService;
     this._checkoutAttributeService     = checkoutAttributeService;
     this._permissionService            = permissionService;
     this._downloadService              = downloadService;
     this._shoppingCartViewModelService = shoppingCartViewModelService;
     this._genericAttributeService      = genericAttributeService;
     this._shoppingCartSettings         = shoppingCartSettings;
     this._orderSettings                = orderSettings;
 }
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="workContext">Work context</param>
 /// <param name="storeContext">Store context</param>
 /// <param name="priceCalculationService">Price calculation service</param>
 /// <param name="taxService">Tax service</param>
 /// <param name="shippingService">Shipping service</param>
 /// <param name="paymentService">Payment service</param>
 /// <param name="checkoutAttributeParser">Checkout attribute parser</param>
 /// <param name="discountService">Discount service</param>
 /// <param name="giftCardService">Gift card service</param>
 /// <param name="genericAttributeService">Generic attribute service</param>
 /// <param name="taxSettings">Tax settings</param>
 /// <param name="rewardPointsSettings">Reward points settings</param>
 /// <param name="shippingSettings">Shipping settings</param>
 /// <param name="shoppingCartSettings">Shopping cart settings</param>
 /// <param name="catalogSettings">Catalog settings</param>
 public OrderTotalCalculationService(IWorkContext workContext,
     IStoreContext storeContext,
     IPriceCalculationService priceCalculationService,
     ITaxService taxService,
     IShippingService shippingService,
     IPaymentService paymentService,
     ICheckoutAttributeParser checkoutAttributeParser,
     IDiscountService discountService,
     IGiftCardService giftCardService,
     IGenericAttributeService genericAttributeService,
     TaxSettings taxSettings,
     RewardPointsSettings rewardPointsSettings,
     ShippingSettings shippingSettings,
     ShoppingCartSettings shoppingCartSettings,
     CatalogSettings catalogSettings)
 {
     this._workContext = workContext;
     this._storeContext = storeContext;
     this._priceCalculationService = priceCalculationService;
     this._taxService = taxService;
     this._shippingService = shippingService;
     this._paymentService = paymentService;
     this._checkoutAttributeParser = checkoutAttributeParser;
     this._discountService = discountService;
     this._giftCardService = giftCardService;
     this._genericAttributeService = genericAttributeService;
     this._taxSettings = taxSettings;
     this._rewardPointsSettings = rewardPointsSettings;
     this._shippingSettings = shippingSettings;
     this._shoppingCartSettings = shoppingCartSettings;
     this._catalogSettings = catalogSettings;
 }
Пример #18
0
 public GiftCardController(CurrencySettings currencySettings,
                           ICurrencyService currencyService,
                           ICustomerActivityService customerActivityService,
                           IDateTimeHelper dateTimeHelper,
                           IGiftCardModelFactory giftCardModelFactory,
                           IGiftCardService giftCardService,
                           ILanguageService languageService,
                           ILocalizationService localizationService,
                           IPermissionService permissionService,
                           IPriceFormatter priceFormatter,
                           IWorkflowMessageService workflowMessageService,
                           LocalizationSettings localizationSettings)
 {
     this._currencySettings        = currencySettings;
     this._currencyService         = currencyService;
     this._customerActivityService = customerActivityService;
     this._dateTimeHelper          = dateTimeHelper;
     this._giftCardModelFactory    = giftCardModelFactory;
     this._giftCardService         = giftCardService;
     this._languageService         = languageService;
     this._localizationService     = localizationService;
     this._permissionService       = permissionService;
     this._priceFormatter          = priceFormatter;
     this._workflowMessageService  = workflowMessageService;
     this._localizationSettings    = localizationSettings;
 }
Пример #19
0
        public IsamOrderService(
            ISettingService settingService,
            IEncryptionService encryptionService,
            IBaseService baseIsamService,
            IProductAttributeParser productAttributeParser,
            IAttributeUtilities attributeUtilities,
            IRepository <ShopAbc> shopAbcRepository,
            IRepository <CustomerShopMapping> customerShopMappingRepository,
            IRepository <WarrantySku> warrantySkuRepository,
            IRepository <ProductAbcDescription> productAbcDescriptionRepository,
            IRepository <GiftCardUsageHistory> giftCardUsageHistoryRepository,
            IStoreContext storeContext,
            IWorkContext workContext,
            IGiftCardService giftCardService,
            ExportOrderSettings settings,
            ILogger logger,
            IOrderService orderService,
            IPriceCalculationService priceCalculationService,
            IAddressService addressService,
            IProductService productService,
            IStateProvinceService stateProvinceService,
            ICountryService countryService,
            IUrlRecordService urlRecordService,
            IProductAttributeService productAttributeService,
            IRepository <Product> productRepository,
            ICustomShopService customShopService,
            IIsamGiftCardService isamGiftCardService,
            IYahooService yahooService
            )
        {
            _settingService                  = settingService;
            _encryptionService               = encryptionService;
            _baseIsamService                 = baseIsamService;
            _productAttributeParser          = productAttributeParser;
            _attributeUtilities              = attributeUtilities;
            _shopAbcRepository               = shopAbcRepository;
            _customerShopMappingRepository   = customerShopMappingRepository;
            _warrantySkuRepository           = warrantySkuRepository;
            _productAbcDescriptionRepository = productAbcDescriptionRepository;
            _giftCardUsageHistoryRepository  = giftCardUsageHistoryRepository;
            _storeContext            = storeContext;
            _workContext             = workContext;
            _giftCardService         = giftCardService;
            _settings                = settings;
            _logger                  = logger;
            _orderService            = orderService;
            _priceCalculationService = priceCalculationService;
            _addressService          = addressService;
            _productService          = productService;
            _stateProvinceService    = stateProvinceService;
            _countryService          = countryService;
            _urlRecordService        = urlRecordService;
            _productAttributeService = productAttributeService;
            _productRepository       = productRepository;
            _customShopService       = customShopService;
            _isamGiftCardService     = isamGiftCardService;
            _yahooService            = yahooService;

            InitializeAllColParams();
        }
Пример #20
0
 public OrderController(IOrderService orderService,
                        IProductService productService,
                        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,
                        IDownloadService downloadService,
                        IAddressAttributeFormatter addressAttributeFormatter,
                        IStoreContext storeContext,
                        IOrderTotalCalculationService orderTotalCalculationService,
                        IRewardPointsService rewardPointsService,
                        IGiftCardService giftCardService,
                        CatalogSettings catalogSettings,
                        OrderSettings orderSettings,
                        TaxSettings taxSettings,
                        ShippingSettings shippingSettings,
                        AddressSettings addressSettings,
                        RewardPointsSettings rewardPointsSettings,
                        PdfSettings pdfSettings)
 {
     this._orderService           = orderService;
     this._productService         = productService;
     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._downloadService              = downloadService;
     this._addressAttributeFormatter    = addressAttributeFormatter;
     this._storeContext                 = storeContext;
     this._rewardPointsService          = rewardPointsService;
     this._giftCardService              = giftCardService;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._catalogSettings              = catalogSettings;
     this._orderSettings                = orderSettings;
     this._taxSettings                  = taxSettings;
     this._shippingSettings             = shippingSettings;
     this._addressSettings              = addressSettings;
     this._rewardPointsSettings         = rewardPointsSettings;
     this._pdfSettings                  = pdfSettings;
 }
        public CustomOrderTotalCalculationService(CatalogSettings catalogSettings,
                                                  IAddressService addressService,
                                                  ICheckoutAttributeParser checkoutAttributeParser,
                                                  ICustomerService customerService,
                                                  IDiscountService discountService,
                                                  IGenericAttributeService genericAttributeService,
                                                  IGiftCardService giftCardService,
                                                  IOrderService orderService,
                                                  IPaymentService paymentService,
                                                  IPriceCalculationService priceCalculationService,
                                                  IProductService productService,
                                                  IRewardPointService rewardPointService,
                                                  IShippingPluginManager shippingPluginManager,
                                                  IShippingService shippingService,
                                                  IShoppingCartService shoppingCartService,
                                                  IStoreContext storeContext,
                                                  ITaxService taxService,
                                                  IWorkContext workContext,
                                                  RewardPointsSettings rewardPointsSettings,
                                                  ShippingSettings shippingSettings,
                                                  ShoppingCartSettings shoppingCartSettings,
                                                  TaxSettings taxSettings,
                                                  // custom
                                                  IWarrantyTaxService warrantyTaxService
                                                  )
            : base(catalogSettings, addressService, checkoutAttributeParser, customerService,
                   discountService, genericAttributeService, giftCardService, orderService,
                   paymentService, priceCalculationService, productService, rewardPointService,
                   shippingPluginManager, shippingService, shoppingCartService,
                   storeContext, taxService, workContext, rewardPointsSettings,
                   shippingSettings, shoppingCartSettings, taxSettings)
        {
            _catalogSettings         = catalogSettings;
            _addressService          = addressService;
            _checkoutAttributeParser = checkoutAttributeParser;
            _customerService         = customerService;
            _discountService         = discountService;
            _genericAttributeService = genericAttributeService;
            _giftCardService         = giftCardService;
            _orderService            = orderService;
            _paymentService          = paymentService;
            _priceCalculationService = priceCalculationService;
            _productService          = productService;
            _rewardPointService      = rewardPointService;
            _shippingPluginManager   = shippingPluginManager;
            _shippingService         = shippingService;
            _shoppingCartService     = shoppingCartService;
            _storeContext            = storeContext;
            _taxService           = taxService;
            _workContext          = workContext;
            _rewardPointsSettings = rewardPointsSettings;
            _shippingSettings     = shippingSettings;
            _shoppingCartSettings = shoppingCartSettings;
            _taxSettings          = taxSettings;

            // custom
            _warrantyTaxService = warrantyTaxService;
        }
 public ActivatedValueForPurchasedGiftCardsCommandHandler(
     IGiftCardService giftCardService,
     ILanguageService languageService,
     IWorkflowMessageService workflowMessageService)
 {
     _giftCardService        = giftCardService;
     _languageService        = languageService;
     _workflowMessageService = workflowMessageService;
 }
 public GiftCardController(
     IGiftCardViewModelService giftCardViewModelService,
     IGiftCardService giftCardService,
     ILocalizationService localizationService)
 {
     _giftCardViewModelService = giftCardViewModelService;
     _giftCardService          = giftCardService;
     _localizationService      = localizationService;
 }
Пример #24
0
 public GiftCardController(ILogManager logManager, IGiftCardService giftCardService, ISessionContext sessionContext, IEventCustomerRepository eventCustomerRepository, ICorporateAccountRepository corporateAccountRepository, IEventRepository eventRepository)
 {
     _giftCardService            = giftCardService;
     _sessionContext             = sessionContext;
     _logger                     = logManager.GetLogger <GiftCardController>();
     _eventCustomerRepository    = eventCustomerRepository;
     _corporateAccountRepository = corporateAccountRepository;
     _eventRepository            = eventRepository;
 }
 public OverriddenOrderTotalCalculationService(CatalogSettings catalogSettings,
                                               IAddressService addressService,
                                               ICheckoutAttributeParser checkoutAttributeParser,
                                               ICustomerService customerSercice,
                                               IDiscountService discountService,
                                               IGenericAttributeService genericAttributeService,
                                               IGiftCardService giftCardService,
                                               IOrderService orderService,
                                               IHttpContextAccessor httpContextAccessor,
                                               IPaymentService paymentService,
                                               IPriceCalculationService priceCalculationService,
                                               IProductService productService,
                                               IRewardPointService rewardPointService,
                                               IShippingPluginManager shippingPluginManager,
                                               IShippingService shippingService,
                                               IShoppingCartService shoppingCartService,
                                               IStoreContext storeContext,
                                               ITaxService taxService,
                                               IWorkContext workContext,
                                               RewardPointsSettings rewardPointsSettings,
                                               ShippingSettings shippingSettings,
                                               ShoppingCartSettings shoppingCartSettings,
                                               TaxSettings taxSettings) : base(catalogSettings,
                                                                               addressService,
                                                                               checkoutAttributeParser,
                                                                               customerSercice,
                                                                               discountService,
                                                                               genericAttributeService,
                                                                               giftCardService,
                                                                               orderService,
                                                                               paymentService,
                                                                               priceCalculationService,
                                                                               productService,
                                                                               rewardPointService,
                                                                               shippingPluginManager,
                                                                               shippingService,
                                                                               shoppingCartService,
                                                                               storeContext,
                                                                               taxService,
                                                                               workContext,
                                                                               rewardPointsSettings,
                                                                               shippingSettings,
                                                                               shoppingCartSettings,
                                                                               taxSettings)
 {
     _genericAttributeService = genericAttributeService;
     _httpContextAccessor     = httpContextAccessor;
     _paymentService          = paymentService;
     _priceCalculationService = priceCalculationService;
     _shippingPluginManager   = shippingPluginManager;
     _customerService         = customerSercice;
     _storeContext            = storeContext;
     _taxService           = taxService;
     _workContext          = workContext;
     _shoppingCartSettings = shoppingCartSettings;
 }
Пример #26
0
 public YahooService(
     IAbcMattressBaseService abcMattressBaseService,
     IAbcMattressEntryService abcMattressEntryService,
     IAbcMattressFrameService abcMattressFrameService,
     IAbcMattressGiftService abcMattressGiftService,
     IAbcMattressModelService abcMattressModelService,
     IAbcMattressPackageService abcMattressPackageService,
     IAbcMattressProtectorService abcMattressProtectorService,
     IAddressService addressService,
     IAttributeUtilities attributeUtilities,
     ICountryService countryService,
     ICustomOrderService customOrderService,
     ICustomShopService customShopService,
     IEncryptionService encryptionService,
     IGenericAttributeService genericAttributeService,
     IGiftCardService giftCardService,
     IHomeDeliveryCostService homeDeliveryCostService,
     IPriceCalculationService priceCalculationService,
     IProductService productService,
     IProductAbcDescriptionService productAbcDescriptionService,
     IStateProvinceService stateProvinceService,
     IStoreService storeService,
     IUrlRecordService urlRecordService,
     IWarrantyService warrantyService,
     ExportOrderSettings settings,
     SecuritySettings securitySettings,
     IPaymentService paymentService
     )
 {
     _abcMattressBaseService      = abcMattressBaseService;
     _abcMattressEntryService     = abcMattressEntryService;
     _abcMattressFrameService     = abcMattressFrameService;
     _abcMattressGiftService      = abcMattressGiftService;
     _abcMattressModelService     = abcMattressModelService;
     _abcMattressPackageService   = abcMattressPackageService;
     _abcMattressProtectorService = abcMattressProtectorService;
     _addressService               = addressService;
     _attributeUtilities           = attributeUtilities;
     _countryService               = countryService;
     _customOrderService           = customOrderService;
     _customShopService            = customShopService;
     _encryptionService            = encryptionService;
     _genericAttributeService      = genericAttributeService;
     _giftCardService              = giftCardService;
     _homeDeliveryCostService      = homeDeliveryCostService;
     _productService               = productService;
     _productAbcDescriptionService = productAbcDescriptionService;
     _priceCalculationService      = priceCalculationService;
     _stateProvinceService         = stateProvinceService;
     _storeService     = storeService;
     _urlRecordService = urlRecordService;
     _warrantyService  = warrantyService;
     _settings         = settings;
     _securitySettings = securitySettings;
     _paymentService   = paymentService;
 }
Пример #27
0
 public OrderViewModelService(
     IOrderService orderService,
     IStoreContext storeContext,
     IWorkContext workContext,
     IDateTimeHelper dateTimeHelper,
     ILocalizationService localizationService,
     ICurrencyService currencyService,
     IOrderProcessingService orderProcessingService,
     IPriceFormatter priceFormatter,
     IDownloadService downloadService,
     IProductAttributeParser productAttributeParser,
     IProductService productService,
     ICountryService countryService,
     IAddressViewModelService addressViewModelService,
     IShipmentService shipmentService,
     IPaymentService paymentService,
     IGiftCardService giftCardService,
     IShippingService shippingService,
     IRewardPointsService rewardPointsService,
     IOrderTotalCalculationService orderTotalCalculationService,
     IServiceProvider serviceProvider,
     OrderSettings orderSettings,
     PdfSettings pdfSettings,
     TaxSettings taxSettings,
     CatalogSettings catalogSettings,
     ShippingSettings shippingSettings,
     RewardPointsSettings rewardPointsSettings)
 {
     _orderService                 = orderService;
     _storeContext                 = storeContext;
     _workContext                  = workContext;
     _dateTimeHelper               = dateTimeHelper;
     _localizationService          = localizationService;
     _currencyService              = currencyService;
     _orderProcessingService       = orderProcessingService;
     _priceFormatter               = priceFormatter;
     _downloadService              = downloadService;
     _productAttributeParser       = productAttributeParser;
     _productService               = productService;
     _countryService               = countryService;
     _addressViewModelService      = addressViewModelService;
     _shipmentService              = shipmentService;
     _paymentService               = paymentService;
     _giftCardService              = giftCardService;
     _shippingService              = shippingService;
     _rewardPointsService          = rewardPointsService;
     _orderTotalCalculationService = orderTotalCalculationService;
     _serviceProvider              = serviceProvider;
     _orderSettings                = orderSettings;
     _pdfSettings                  = pdfSettings;
     _taxSettings                  = taxSettings;
     _catalogSettings              = catalogSettings;
     _shippingSettings             = shippingSettings;
     _rewardPointsSettings         = rewardPointsSettings;
 }
        public GiftCardsController(IGiftCardService giftCardService, IGiftCardOrderService giftCardOrderService, IUserService userService, ILogger logger, IRegistrationService registrationService, IUserMailer userMailer, IGiftOrderConfirmationMailer giftorderConfirmationMailer, ISEOToolStaticPageQueryService seoToolStaticPageQueryService)
        {
            _giftCardService = giftCardService;
            _giftCardOrderService = giftCardOrderService;

            _registrationService = registrationService;
            _userService = userService;
            _userMailer = userMailer;
            _giftorderConfirmationMailer = giftorderConfirmationMailer;
            _logger = logger;
            _seoToolStaticPageQueryService = seoToolStaticPageQueryService;
        }
        public GiftCardsController(IGiftCardService giftCardService, IGiftCardOrderService giftCardOrderService, IUserService userService, ILogger logger, IRegistrationService registrationService, IUserMailer userMailer, IGiftOrderConfirmationMailer giftorderConfirmationMailer, ISEOToolStaticPageQueryService seoToolStaticPageQueryService)
        {
            _giftCardService      = giftCardService;
            _giftCardOrderService = giftCardOrderService;

            _registrationService         = registrationService;
            _userService                 = userService;
            _userMailer                  = userMailer;
            _giftorderConfirmationMailer = giftorderConfirmationMailer;
            _logger = logger;
            _seoToolStaticPageQueryService = seoToolStaticPageQueryService;
        }
 public PaymentMethodViewModelFactory(
     ICurrentMarket currentMarket,
     LanguageService languageService,
     IPaymentService paymentService,
     IEnumerable <IPaymentMethod> paymentOptions,
     IGiftCardService giftCardService)
 {
     _currentMarket   = currentMarket;
     _languageService = languageService;
     _paymentService  = paymentService;
     _paymentOptions  = paymentOptions;
     _giftCardService = giftCardService;
 }
Пример #31
0
        public ShoppingCartController(IProductService productService, IWorkContext workContext,
            IShoppingCartService shoppingCartService, IPictureService pictureService,
            ILocalizationService localizationService, IProductAttributeFormatter productAttributeFormatter,
            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,
            MediaSettings mediaSetting, ShoppingCartSettings shoppingCartSettings,
            CatalogSettings catalogSettings, OrderSettings orderSettings,
            ShippingSettings shippingSettings,TaxSettings taxSettings)
        {
            this._productService = productService;
            this._workContext = workContext;
            this._shoppingCartService = shoppingCartService;
            this._pictureService = pictureService;
            this._localizationService = localizationService;
            this._productAttributeFormatter = productAttributeFormatter;
            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._mediaSetting = mediaSetting;
            this._shoppingCartSettings = shoppingCartSettings;
            this._catalogSettings = catalogSettings;
            this._orderSettings = orderSettings;
            this._shippingSettings = shippingSettings;
            this._taxSettings = taxSettings;
        }
        public void SetUp()
        {
            _giftCardService = GetService <IGiftCardService>();

            _giftCard1 = new GiftCard {
                Amount = 100, IsGiftCardActivated = true
            };
            _giftCard2 = new GiftCard {
                Amount = 100
            };

            _giftCardService.InsertGiftCard(_giftCard1);
            _giftCardService.InsertGiftCard(_giftCard2);
        }
Пример #33
0
 public GiftCardModelFactory(CurrencySettings currencySettings,
                             ICurrencyService currencyService,
                             IDateTimeHelper dateTimeHelper,
                             IGiftCardService giftCardService,
                             ILocalizationService localizationService,
                             IPriceFormatter priceFormatter)
 {
     this._currencySettings    = currencySettings;
     this._currencyService     = currencyService;
     this._dateTimeHelper      = dateTimeHelper;
     this._giftCardService     = giftCardService;
     this._localizationService = localizationService;
     this._priceFormatter      = priceFormatter;
 }
Пример #34
0
        public GiftCardController(IGiftCardService giftCardService,
            IPriceFormatter priceFormatter,
			IWorkflowMessageService workflowMessageService,
            IDateTimeHelper dateTimeHelper,
			LocalizationSettings localizationSettings,
            ILanguageService languageService,
            ICustomerActivityService customerActivityService,
			ICommonServices services)
        {
            this._giftCardService = giftCardService;
            this._priceFormatter = priceFormatter;
            this._workflowMessageService = workflowMessageService;
            this._dateTimeHelper = dateTimeHelper;
            this._localizationSettings = localizationSettings;
            this._languageService = languageService;
            this._customerActivityService = customerActivityService;
            this._services = services;
        }
Пример #35
0
 public GiftCardController(IGiftCardService giftCardService,
     IPriceFormatter priceFormatter, IWorkflowMessageService workflowMessageService,
     IDateTimeHelper dateTimeHelper, LocalizationSettings localizationSettings,
     ICurrencyService currencyService, CurrencySettings currencySettings,
     ILocalizationService localizationService, ICustomerActivityService customerActivityService,
     IPermissionService permissionService)
 {
     this._giftCardService = giftCardService;
     this._priceFormatter = priceFormatter;
     this._workflowMessageService = workflowMessageService;
     this._dateTimeHelper = dateTimeHelper;
     this._localizationSettings = localizationSettings;
     this._currencyService = currencyService;
     this._currencySettings = currencySettings;
     this._localizationService = localizationService;
     this._customerActivityService = customerActivityService;
     this._permissionService = permissionService;
 }
Пример #36
0
 public HomeController(ICacheManager cacheManager, 
     IProductService productService,
     ISettingService settingService,
     ILanguageService languageService,
     IWebHelper webHelper,
     IStoreContext storeContext,
     IGenericAttributeService genericAttributeService,
     ICurrencyService currencyService,
     ICountryService countryService,
     IGiftCardService giftCardService,
     ICustomerService customerService)
 {
     _cacheManager = cacheManager;
     _productService = productService;
     _settingService = settingService;
     _languageService = languageService;
     _webHelper = webHelper;
     _storeContext = storeContext;
     _genericAttributeService = genericAttributeService;
     _currencyService = currencyService;
     _countryService = countryService;
     _giftCardService = giftCardService;
     _customerService = customerService;
 }
Пример #37
0
        public InvoicesController(IOrderService orderService,
            IOrderReportService orderReportService,
            IOrderProcessingService orderProcessingService,
            IPriceCalculationService priceCalculationService,
            IDateTimeHelper dateTimeHelper,
            IPriceFormatter priceFormatter,
            IDiscountService discountService,
            ILocalizationService localizationService,
            IWorkContext workContext,
            ICurrencyService currencyService,
            IEncryptionService encryptionService,
            IPaymentService paymentService,
            IMeasureService measureService,
            IPdfService pdfService,
            IAddressService addressService,
            ICountryService countryService,
            IStateProvinceService stateProvinceService,
            Nop.Services.Catalog.IProductService productService,
            IExportManager exportManager,
            IPermissionService permissionService,
            IWorkflowMessageService workflowMessageService,
            ICategoryService categoryService,
            IManufacturerService manufacturerService,
            IProductAttributeService productAttributeService,
            IProductAttributeParser productAttributeParser,
            IProductAttributeFormatter productAttributeFormatter,
            IShoppingCartService shoppingCartService,
            IGiftCardService giftCardService,
            IDownloadService downloadService,
            IShipmentService shipmentService,
            IShippingService shippingService,
            IStoreService storeService,
            IVendorService vendorService,
            IAddressAttributeParser addressAttributeParser,
            IAddressAttributeService addressAttributeService,
            IAddressAttributeFormatter addressAttributeFormatter,
            IAffiliateService affiliateService,
            IPictureService pictureService,
            CurrencySettings currencySettings,
            TaxSettings taxSettings,
            MeasureSettings measureSettings,
            AddressSettings addressSettings,
            ShippingSettings shippingSettings,
            IInvoiceService invoiceService,
            IGenericAttributeService genericAttributeService,
            IProductTemplateService productTemplateService,
            IStoreContext storeContext,
            ISettingService settingService,
            IGroupDealService groupDealService)
        {
            this._orderService = orderService;
            this._orderReportService = orderReportService;
            this._orderProcessingService = orderProcessingService;
            this._priceCalculationService = priceCalculationService;
            this._dateTimeHelper = dateTimeHelper;
            this._priceFormatter = priceFormatter;
            this._discountService = discountService;
            this._localizationService = localizationService;
            this._workContext = workContext;
            this._currencyService = currencyService;
            this._encryptionService = encryptionService;
            this._paymentService = paymentService;
            this._measureService = measureService;
            this._pdfService = pdfService;
            this._addressService = addressService;
            this._countryService = countryService;
            this._stateProvinceService = stateProvinceService;
            this._productService = productService;
            this._exportManager = exportManager;
            this._permissionService = permissionService;
            this._workflowMessageService = workflowMessageService;
            this._categoryService = categoryService;
            this._manufacturerService = manufacturerService;
            this._productAttributeService = productAttributeService;
            this._productAttributeParser = productAttributeParser;
            this._productAttributeFormatter = productAttributeFormatter;
            this._shoppingCartService = shoppingCartService;
            this._giftCardService = giftCardService;
            this._downloadService = downloadService;
            this._shipmentService = shipmentService;
            this._shippingService = shippingService;
            this._storeService = storeService;
            this._vendorService = vendorService;
            this._addressAttributeParser = addressAttributeParser;
            this._addressAttributeService = addressAttributeService;
            this._addressAttributeFormatter = addressAttributeFormatter;
            this._affiliateService = affiliateService;
            this._pictureService = pictureService;

            this._currencySettings = currencySettings;
            this._taxSettings = taxSettings;
            this._measureSettings = measureSettings;
            this._addressSettings = addressSettings;
            this._shippingSettings = shippingSettings;
            this._invoiceService = invoiceService;
            this._genericAttributeService = genericAttributeService;
            this._productTemplateService = productTemplateService;
            this._storeContext = storeContext;
            this._settingService = settingService;
            this._groupDealService = groupDealService;
        }
Пример #38
0
 /// <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="vendorService">Vendor 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="pdfService">PDF service</param>
 /// <param name="paymentSettings">Payment settings</param>
 /// <param name="shippingSettings">Shipping 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,
     IPdfService pdfService,
     ShippingSettings shippingSettings,
     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._pdfService = pdfService;
     this._paymentSettings = paymentSettings;
     this._shippingSettings = shippingSettings;
     this._rewardPointsSettings = rewardPointsSettings;
     this._orderSettings = orderSettings;
     this._taxSettings = taxSettings;
     this._localizationSettings = localizationSettings;
     this._currencySettings = currencySettings;
 }
Пример #39
0
        /// <summary>
        /// Ctor
        /// </summary>
        /// <param name="sciRepository">Shopping cart repository</param>
        /// <param name="workContext">Work context</param>
        /// <param name="storeContext">Store context</param>
        /// <param name="currencyService">Currency service</param>
        /// <param name="productService">Product settings</param>
        /// <param name="localizationService">Localization service</param>
        /// <param name="productAttributeParser">Product attribute parser</param>
        /// <param name="checkoutAttributeService">Checkout attribute service</param>
        /// <param name="checkoutAttributeParser">Checkout attribute parser</param>
        /// <param name="priceFormatter">Price formatter</param>
        /// <param name="customerService">Customer service</param>
        /// <param name="shoppingCartSettings">Shopping cart settings</param>
        /// <param name="eventPublisher">Event publisher</param>
        /// <param name="permissionService">Permission service</param>
        /// <param name="aclService">ACL service</param>
        /// <param name="storeMappingService">Store mapping service</param>
        /// <param name="genericAttributeService">Generic attribute service</param>
        /// <param name="productAttributeService">Product attribute service</param>
        public ShoppingCartService(IRepository<ShoppingCartItem> sciRepository,
            IWorkContext workContext, IStoreContext storeContext,
            ICurrencyService currencyService,
            IProductService productService, ILocalizationService localizationService,
            IProductAttributeParser productAttributeParser,
            ICheckoutAttributeService checkoutAttributeService,
            ICheckoutAttributeParser checkoutAttributeParser,
            IPriceFormatter priceFormatter,
            ICustomerService customerService,
            ShoppingCartSettings shoppingCartSettings,
            IEventPublisher eventPublisher,
            IPermissionService permissionService, 
            IAclService aclService,
            IStoreMappingService storeMappingService,
            IGenericAttributeService genericAttributeService,
            IProductAttributeService productAttributeService
            
            ,IGiftCardService giftCardService)
        {
            this._sciRepository = sciRepository;
            this._workContext = workContext;
            this._storeContext = storeContext;
            this._currencyService = currencyService;
            this._productService = productService;
            this._localizationService = localizationService;
            this._productAttributeParser = productAttributeParser;
            this._checkoutAttributeService = checkoutAttributeService;
            this._checkoutAttributeParser = checkoutAttributeParser;
            this._priceFormatter = priceFormatter;
            this._customerService = customerService;
            this._shoppingCartSettings = shoppingCartSettings;
            this._eventPublisher = eventPublisher;
            this._permissionService = permissionService;
            this._aclService = aclService;
            this._storeMappingService = storeMappingService;
            this._genericAttributeService = genericAttributeService;
            this._productAttributeService = productAttributeService;

            this._giftCardService = giftCardService;
        }
Пример #40
0
 public CustomerController(IAuthenticationService authenticationService,
     IDateTimeHelper dateTimeHelper,
     DateTimeSettings dateTimeSettings, 
     TaxSettings taxSettings,
     ILocalizationService localizationService,
     IWorkContext workContext,
     IStoreContext storeContext,
     IStoreMappingService storeMappingService,
     ICustomerService customerService,
     ICustomerAttributeParser customerAttributeParser,
     ICustomerAttributeService customerAttributeService,
     IGenericAttributeService genericAttributeService,
     ICustomerRegistrationService customerRegistrationService,
     ITaxService taxService, 
     RewardPointsSettings rewardPointsSettings,
     CustomerSettings customerSettings,
     AddressSettings addressSettings, 
     ForumSettings forumSettings,
     OrderSettings orderSettings, 
     IAddressService addressService,
     ICountryService countryService,
     IStateProvinceService stateProvinceService,
     IOrderService orderService,
     IPictureService pictureService, 
     INewsLetterSubscriptionService newsLetterSubscriptionService,
     IShoppingCartService shoppingCartService,
     IOpenAuthenticationService openAuthenticationService,
     IDownloadService downloadService,
     IWebHelper webHelper,
     ICustomerActivityService customerActivityService,
     IAddressAttributeParser addressAttributeParser,
     IAddressAttributeService addressAttributeService,
     IAddressAttributeFormatter addressAttributeFormatter,
     MediaSettings mediaSettings,
     IWorkflowMessageService workflowMessageService,
     LocalizationSettings localizationSettings,
     CaptchaSettings captchaSettings,
     SecuritySettings securitySettings,
     ExternalAuthenticationSettings externalAuthenticationSettings,
     IGiftCardService giftCardService,
     IShippingService shippingService)
 {
     this._authenticationService = authenticationService;
     this._dateTimeHelper = dateTimeHelper;
     this._dateTimeSettings = dateTimeSettings;
     this._taxSettings = taxSettings;
     this._localizationService = localizationService;
     this._workContext = workContext;
     this._storeContext = storeContext;
     this._storeMappingService = storeMappingService;
     this._customerService = customerService;
     this._customerAttributeParser = customerAttributeParser;
     this._customerAttributeService = customerAttributeService;
     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._orderService = orderService;
     this._pictureService = pictureService;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._shoppingCartService = shoppingCartService;
     this._openAuthenticationService = openAuthenticationService;
     this._downloadService = downloadService;
     this._webHelper = webHelper;
     this._customerActivityService = customerActivityService;
     this._addressAttributeParser = addressAttributeParser;
     this._addressAttributeService = addressAttributeService;
     this._addressAttributeFormatter = addressAttributeFormatter;
     this._mediaSettings = mediaSettings;
     this._workflowMessageService = workflowMessageService;
     this._localizationSettings = localizationSettings;
     this._captchaSettings = captchaSettings;
     this._securitySettings = securitySettings;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._giftCardService = giftCardService;
     this._shippingService = shippingService;
 }
Пример #41
0
        public OrderController(IOrderService orderService, 
            IOrderReportService orderReportService, IOrderProcessingService orderProcessingService,
            IDateTimeHelper dateTimeHelper, IPriceFormatter priceFormatter, ILocalizationService localizationService,
            IWorkContext workContext, ICurrencyService currencyService,
            IEncryptionService encryptionService, IPaymentService paymentService,
            IMeasureService measureService,
            IAddressService addressService, ICountryService countryService,
            IStateProvinceService stateProvinceService, IProductService productService,
            IExportManager exportManager, IPermissionService permissionService,
            IWorkflowMessageService workflowMessageService,
            ICategoryService categoryService, IManufacturerService manufacturerService,
            IProductAttributeService productAttributeService, IProductAttributeParser productAttributeParser,
            IProductAttributeFormatter productAttributeFormatter, IShoppingCartService shoppingCartService,
            ICheckoutAttributeFormatter checkoutAttributeFormatter, 
            IGiftCardService giftCardService, IDownloadService downloadService,
			IShipmentService shipmentService, IStoreService storeService,
			ITaxService taxService,
			IPriceCalculationService priceCalculationService,
			IEventPublisher eventPublisher,
			ICustomerService customerService,
			PluginMediator pluginMediator,
			IAffiliateService affiliateService,
            CatalogSettings catalogSettings, CurrencySettings currencySettings, TaxSettings taxSettings,
            MeasureSettings measureSettings, PdfSettings pdfSettings, AddressSettings addressSettings,
            IPdfConverter pdfConverter, ICommonServices services, Lazy<IPictureService> pictureService)
        {
            this._orderService = orderService;
            this._orderReportService = orderReportService;
            this._orderProcessingService = orderProcessingService;
            this._dateTimeHelper = dateTimeHelper;
            this._priceFormatter = priceFormatter;
            this._localizationService = localizationService;
            this._workContext = workContext;
            this._currencyService = currencyService;
            this._encryptionService = encryptionService;
            this._paymentService = paymentService;
            this._measureService = measureService;
            this._addressService = addressService;
            this._countryService = countryService;
            this._stateProvinceService = stateProvinceService;
            this._productService = productService;
            this._exportManager = exportManager;
            this._permissionService = permissionService;
            this._workflowMessageService = workflowMessageService;
            this._categoryService = categoryService;
            this._manufacturerService = manufacturerService;
            this._productAttributeService = productAttributeService;
            this._productAttributeParser = productAttributeParser;
            this._productAttributeFormatter = productAttributeFormatter;
            this._shoppingCartService = shoppingCartService;
            this._giftCardService = giftCardService;
            this._downloadService = downloadService;
            this._shipmentService = shipmentService;
            this._storeService = storeService;
            this._taxService = taxService;
            this._priceCalculationService = priceCalculationService;
            this._eventPublisher = eventPublisher;
            this._customerService = customerService;
            this._pluginMediator = pluginMediator;
            this._affiliateService = affiliateService;

            this._catalogSettings = catalogSettings;
            this._currencySettings = currencySettings;
            this._taxSettings = taxSettings;
            this._measureSettings = measureSettings;
            this._pdfSettings = pdfSettings;
            this._addressSettings = addressSettings;

            this._checkoutAttributeFormatter = checkoutAttributeFormatter;
            _pdfConverter = pdfConverter;
            _services = services;
            _pictureService = pictureService;
        }
Пример #42
0
        public ShoppingCartController(IProductService productService,
			IWorkContext workContext, IStoreContext storeContext,
            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, IDeliveryTimeService deliveryTimeService,
            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,
			HttpContextBase httpContext, PluginMediator pluginMediator,
            IQuantityUnitService quantityUnitService)
        {
            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._deliveryTimeService = deliveryTimeService;
            this._httpContext = httpContext;
            this._mediaSettings = mediaSettings;
            this._shoppingCartSettings = shoppingCartSettings;
            this._catalogSettings = catalogSettings;
            this._orderSettings = orderSettings;
            this._shippingSettings = shippingSettings;
            this._taxSettings = taxSettings;
            this._captchaSettings = captchaSettings;
            this._addressSettings = addressSettings;
            this._pluginMediator = pluginMediator;
            this._quantityUnitService = quantityUnitService;
        }
Пример #43
0
 public CustomerController(ICustomerService customerService,
     INewsLetterSubscriptionService newsLetterSubscriptionService,
     IGenericAttributeService genericAttributeService,
     ICustomerRegistrationService customerRegistrationService,
     ICustomerReportService customerReportService, 
     IDateTimeHelper dateTimeHelper,
     ILocalizationService localizationService, 
     DateTimeSettings dateTimeSettings,
     TaxSettings taxSettings, 
     RewardPointsSettings rewardPointsSettings,
     ICountryService countryService, 
     IStateProvinceService stateProvinceService, 
     IAddressService addressService,
     CustomerSettings customerSettings,
     ITaxService taxService, 
     IWorkContext workContext,
     IVendorService vendorService,
     IStoreContext storeContext,
     IPriceFormatter priceFormatter,
     IOrderService orderService, 
     IExportManager exportManager,
     ICustomerActivityService customerActivityService,
     IPriceCalculationService priceCalculationService,
     IProductAttributeFormatter productAttributeFormatter,
     IPermissionService permissionService, 
     IQueuedEmailService queuedEmailService,
     EmailAccountSettings emailAccountSettings,
     IEmailAccountService emailAccountService, 
     ForumSettings forumSettings,
     IForumService forumService, 
     IOpenAuthenticationService openAuthenticationService,
     AddressSettings addressSettings,
     IStoreService storeService,
     ICustomerAttributeParser customerAttributeParser,
     ICustomerAttributeService customerAttributeService,
     IAddressAttributeParser addressAttributeParser,
     IAddressAttributeService addressAttributeService,
     IAddressAttributeFormatter addressAttributeFormatter,
     IAffiliateService affiliateService,
     IWorkflowMessageService workflowMessageService,
     IGiftCardService giftCardService)
 {
     this._customerService = customerService;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._genericAttributeService = genericAttributeService;
     this._customerRegistrationService = customerRegistrationService;
     this._customerReportService = customerReportService;
     this._dateTimeHelper = dateTimeHelper;
     this._localizationService = localizationService;
     this._dateTimeSettings = dateTimeSettings;
     this._taxSettings = taxSettings;
     this._rewardPointsSettings = rewardPointsSettings;
     this._countryService = countryService;
     this._stateProvinceService = stateProvinceService;
     this._addressService = addressService;
     this._customerSettings = customerSettings;
     this._taxService = taxService;
     this._workContext = workContext;
     this._vendorService = vendorService;
     this._storeContext = storeContext;
     this._priceFormatter = priceFormatter;
     this._orderService = orderService;
     this._exportManager = exportManager;
     this._customerActivityService = customerActivityService;
     this._priceCalculationService = priceCalculationService;
     this._productAttributeFormatter = productAttributeFormatter;
     this._permissionService = permissionService;
     this._queuedEmailService = queuedEmailService;
     this._emailAccountSettings = emailAccountSettings;
     this._emailAccountService = emailAccountService;
     this._forumSettings = forumSettings;
     this._forumService = forumService;
     this._openAuthenticationService = openAuthenticationService;
     this._addressSettings = addressSettings;
     this._storeService = storeService;
     this._customerAttributeParser = customerAttributeParser;
     this._customerAttributeService = customerAttributeService;
     this._addressAttributeParser = addressAttributeParser;
     this._addressAttributeService = addressAttributeService;
     this._addressAttributeFormatter = addressAttributeFormatter;
     this._affiliateService = affiliateService;
     this._workflowMessageService = workflowMessageService;this._giftCardService = giftCardService;
     this._giftCardService = giftCardService;
 }
        public new void SetUp()
        {
            _workContext = null;

            _store = new Store() { Id = 1 };
            _storeContext = MockRepository.GenerateMock<IStoreContext>();
            _storeContext.Expect(x => x.CurrentStore).Return(_store);

            var pluginFinder = new PluginFinder();

            _shoppingCartSettings = new ShoppingCartSettings();
            _catalogSettings = new CatalogSettings();

            var cacheManager = new NopNullCache();

            _productService = MockRepository.GenerateMock<IProductService>();

            //price calculation service
            _discountService = MockRepository.GenerateMock<IDiscountService>();
            _categoryService = MockRepository.GenerateMock<ICategoryService>();
            _productAttributeParser = MockRepository.GenerateMock<IProductAttributeParser>();
            _priceCalcService = new PriceCalculationService(_workContext, _storeContext,
                _discountService, _categoryService,
                _productAttributeParser, _productService,
                cacheManager, _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>>();
            _deliveryDateRepository = MockRepository.GenerateMock<IRepository<DeliveryDate>>();
            _warehouseRepository = MockRepository.GenerateMock<IRepository<Warehouse>>();
            _logger = new NullLogger();
            _shippingService = new ShippingService(_shippingMethodRepository,
                _deliveryDateRepository,
                _warehouseRepository,
                _logger,
                _productService,
                _productAttributeParser,
                _checkoutAttributeParser,
                _genericAttributeService,
                _localizationService,
                _addressService,
                _shippingSettings,
                pluginFinder,
                _storeContext,
                _eventPublisher,
                _shoppingCartSettings,
                cacheManager);
            _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>();
            _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>();
            _pdfService = MockRepository.GenerateMock<IPdfService>();

            _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,_pdfService, _paymentSettings, _rewardPointsSettings,
                _orderSettings, _taxSettings, _localizationSettings,
                _currencySettings);
        }
        public new void SetUp()
        {
            _workContext = MockRepository.GenerateMock<IWorkContext>();

            _store = new Store { Id = 1 };
            _storeContext = MockRepository.GenerateMock<IStoreContext>();
            _storeContext.Expect(x => x.CurrentStore).Return(_store);

            var pluginFinder = new PluginFinder();

            _shoppingCartSettings = new ShoppingCartSettings();
            _catalogSettings = new CatalogSettings();

            //price calculation service
            _discountService = MockRepository.GenerateMock<IDiscountService>();
            _categoryService = MockRepository.GenerateMock<ICategoryService>();
            _productAttributeParser = MockRepository.GenerateMock<IProductAttributeParser>();
            _productService = MockRepository.GenerateMock<IProductService>();
            _productAttributeService = MockRepository.GenerateMock<IProductAttributeService>();
            _genericAttributeService = MockRepository.GenerateMock<IGenericAttributeService>();
            _eventPublisher = MockRepository.GenerateMock<IEventPublisher>();
            _eventPublisher.Expect(x => x.Publish(Arg<object>.Is.Anything));

            _settingService = MockRepository.GenerateMock<ISettingService>();
            _typeFinder = MockRepository.GenerateMock<ITypeFinder>();

            //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,
                _productService,
                _checkoutAttributeParser,
                _genericAttributeService,
                _shippingSettings,
                _eventPublisher,
                _shoppingCartSettings,
                _settingService,
                this.ProviderManager,
                _typeFinder);

            _providerManager = MockRepository.GenerateMock<IProviderManager>();
            _checkoutAttributeParser = MockRepository.GenerateMock<ICheckoutAttributeParser>();
            _giftCardService = MockRepository.GenerateMock<IGiftCardService>();

            //tax
            _taxSettings = new TaxSettings();
            _taxSettings.ShippingIsTaxable = true;
            _taxSettings.PaymentMethodAdditionalFeeIsTaxable = true;
            _taxSettings.PricesIncludeTax = false;
            _taxSettings.TaxDisplayType = TaxDisplayType.IncludingTax;
            _taxSettings.DefaultTaxAddressId = 10;

            _addressService = MockRepository.GenerateMock<IAddressService>();
            _addressService.Expect(x => x.GetAddressById(_taxSettings.DefaultTaxAddressId)).Return(new Address { Id = _taxSettings.DefaultTaxAddressId });
            _downloadService = MockRepository.GenerateMock<IDownloadService>();
            _services = MockRepository.GenerateMock<ICommonServices>();
            _httpRequestBase = MockRepository.GenerateMock<HttpRequestBase>();
            _geoCountryLookup = MockRepository.GenerateMock<IGeoCountryLookup>();

            _taxService = new TaxService(_addressService, _workContext, _taxSettings, _shoppingCartSettings, pluginFinder, _geoCountryLookup, this.ProviderManager);

            _rewardPointsSettings = new RewardPointsSettings();

            _priceCalcService = new PriceCalculationService(_discountService, _categoryService, _productAttributeParser, _productService, _shoppingCartSettings, _catalogSettings,
                _productAttributeService, _downloadService, _services, _httpRequestBase, _taxService);

            _orderTotalCalcService = new OrderTotalCalculationService(_workContext, _storeContext,
                _priceCalcService, _taxService, _shippingService, _providerManager,
                _checkoutAttributeParser, _discountService, _giftCardService, _genericAttributeService, _productAttributeParser,
                _taxSettings, _rewardPointsSettings, _shippingSettings, _shoppingCartSettings, _catalogSettings);
        }
 public OrderTotalCalculationService(IWorkContext workContext,
     IStoreContext storeContext,
     IPromosPriceCalculationService promosPriceCalculationService,
     IPriceCalculationService priceCalculationService,
     ITaxService taxService,
     IShippingService shippingService,
     IPaymentService paymentService,
     ICheckoutAttributeParser checkoutAttributeParser,
     IDiscountService discountService,
     IGiftCardService giftCardService,
     IGenericAttributeService genericAttributeService,
     TaxSettings taxSettings,
     RewardPointsSettings rewardPointsSettings,
     ShippingSettings shippingSettings,
     ShoppingCartSettings shoppingCartSettings,
     CatalogSettings catalogSettings,
     IPromoUtilities promoUtilities,
     PromoSettings promoSettings,
     IPromoService promoService,
     IAttributeValueService attributeValueService,
     ITaxServiceExtensions taxServiceExtensions,
     ICurrencyService currencyService)
     : base(workContext,
         storeContext,
         priceCalculationService,
         taxService,
         shippingService,
         paymentService,
         checkoutAttributeParser,
         discountService,
         giftCardService,
         genericAttributeService,
         taxSettings,
         rewardPointsSettings,
         shippingSettings,
         shoppingCartSettings,
         catalogSettings)
 {
     this._workContext = workContext;
     this._storeContext = storeContext;
     this._promosPriceCalculationService = promosPriceCalculationService;
     this._taxService = taxService;
     this._shippingService = shippingService;
     this._paymentService = paymentService;
     this._checkoutAttributeParser = checkoutAttributeParser;
     this._discountService = discountService;
     this._giftCardService = giftCardService;
     this._genericAttributeService = genericAttributeService;
     this._taxSettings = taxSettings;
     this._rewardPointsSettings = rewardPointsSettings;
     this._shippingSettings = shippingSettings;
     this._shoppingCartSettings = shoppingCartSettings;
     this._catalogSettings = catalogSettings;
     this._promoUtilities = promoUtilities;
     this._promoSettings = promoSettings;
     this._promoService = promoService;
     this._priceCalculationService = priceCalculationService;
     this._attributeValueService = attributeValueService;
     this._taxServiceExtensions = taxServiceExtensions;
     this._currencyService = currencyService;
 }
Пример #47
0
        public OrderController(IOrderService orderService, 
            IOrderReportService orderReportService, IOrderProcessingService orderProcessingService,
            IDateTimeHelper dateTimeHelper, IPriceFormatter priceFormatter, ILocalizationService localizationService,
            IWorkContext workContext, ICurrencyService currencyService,
            IEncryptionService encryptionService, IPaymentService paymentService,
            IMeasureService measureService, IPdfService pdfService,
            IAddressService addressService, ICountryService countryService,
            IStateProvinceService stateProvinceService, IProductService productService,
            IExportManager exportManager, IPermissionService permissionService,
            IWorkflowMessageService workflowMessageService,
            ICategoryService categoryService, IManufacturerService manufacturerService,
            IProductAttributeService productAttributeService, IProductAttributeParser productAttributeParser,
            IProductAttributeFormatter productAttributeFormatter, IShoppingCartService shoppingCartService,
            IGiftCardService giftCardService, IDownloadService downloadService,
            IShipmentService shipmentService,
            CatalogSettings catalogSettings, CurrencySettings currencySettings, TaxSettings taxSettings,
            MeasureSettings measureSettings, PdfSettings pdfSettings, AddressSettings addressSettings)
        {
            this._orderService = orderService;
            this._orderReportService = orderReportService;
            this._orderProcessingService = orderProcessingService;
            this._dateTimeHelper = dateTimeHelper;
            this._priceFormatter = priceFormatter;
            this._localizationService = localizationService;
            this._workContext = workContext;
            this._currencyService = currencyService;
            this._encryptionService = encryptionService;
            this._paymentService = paymentService;
            this._measureService = measureService;
            this._pdfService = pdfService;
            this._addressService = addressService;
            this._countryService = countryService;
            this._stateProvinceService = stateProvinceService;
            this._productService = productService;
            this._exportManager = exportManager;
            this._permissionService = permissionService;
            this._workflowMessageService = workflowMessageService;
            this._categoryService = categoryService;
            this._manufacturerService = manufacturerService;
            this._productAttributeService = productAttributeService;
            this._productAttributeParser = productAttributeParser;
            this._productAttributeFormatter = productAttributeFormatter;
            this._shoppingCartService = shoppingCartService;
            this._giftCardService = giftCardService;
            this._downloadService = downloadService;
            this._shipmentService = shipmentService;

            this._catalogSettings = catalogSettings;
            this._currencySettings = currencySettings;
            this._taxSettings = taxSettings;
            this._measureSettings = measureSettings;
            this._pdfSettings = pdfSettings;
            this._addressSettings = addressSettings;
        }
Пример #48
0
        public OrderController(IOrderService orderService, 
            IOrderReportService orderReportService, 
            IOrderProcessingService orderProcessingService,
            IReturnRequestService returnRequestService,
            IPriceCalculationService priceCalculationService,
            ITaxService taxService,
            IDateTimeHelper dateTimeHelper,
            IPriceFormatter priceFormatter,
            IDiscountService discountService,
            ILocalizationService localizationService,
            IWorkContext workContext,
            ICurrencyService currencyService,
            IEncryptionService encryptionService,
            IPaymentService paymentService,
            IMeasureService measureService,
            IPdfService pdfService,
            IAddressService addressService,
            ICountryService countryService,
            IStateProvinceService stateProvinceService,
            IProductService productService,
            IExportManager exportManager,
            IPermissionService permissionService,
            IWorkflowMessageService workflowMessageService,
            ICategoryService categoryService, 
            IManufacturerService manufacturerService,
            IProductAttributeService productAttributeService, 
            IProductAttributeParser productAttributeParser,
            IProductAttributeFormatter productAttributeFormatter, 
            IShoppingCartService shoppingCartService,
            IGiftCardService giftCardService, 
            IDownloadService downloadService,
            IShipmentService shipmentService, 
            IShippingService shippingService,
            IStoreService storeService,
            IVendorService vendorService,
            IAddressAttributeParser addressAttributeParser,
            IAddressAttributeService addressAttributeService,
            IAddressAttributeFormatter addressAttributeFormatter,
            IAffiliateService affiliateService,
            IPictureService pictureService,
            ICustomerActivityService customerActivityService,
            ICacheManager cacheManager,
            OrderSettings orderSettings,
            CurrencySettings currencySettings, 
            TaxSettings taxSettings,
            MeasureSettings measureSettings,
            AddressSettings addressSettings,
            ShippingSettings shippingSettings)
		{
            this._orderService = orderService;
            this._orderReportService = orderReportService;
            this._orderProcessingService = orderProcessingService;
            this._returnRequestService = returnRequestService;
            this._priceCalculationService = priceCalculationService;
            this._taxService = taxService;
            this._dateTimeHelper = dateTimeHelper;
            this._priceFormatter = priceFormatter;
            this._discountService = discountService;
            this._localizationService = localizationService;
            this._workContext = workContext;
            this._currencyService = currencyService;
            this._encryptionService = encryptionService;
            this._paymentService = paymentService;
            this._measureService = measureService;
            this._pdfService = pdfService;
            this._addressService = addressService;
            this._countryService = countryService;
            this._stateProvinceService = stateProvinceService;
            this._productService = productService;
            this._exportManager = exportManager;
            this._permissionService = permissionService;
            this._workflowMessageService = workflowMessageService;
            this._categoryService = categoryService;
            this._manufacturerService = manufacturerService;
            this._productAttributeService = productAttributeService;
            this._productAttributeParser = productAttributeParser;
            this._productAttributeFormatter = productAttributeFormatter;
            this._shoppingCartService = shoppingCartService;
            this._giftCardService = giftCardService;
            this._downloadService = downloadService;
            this._shipmentService = shipmentService;
            this._shippingService = shippingService;
            this._storeService = storeService;
            this._vendorService = vendorService;
            this._addressAttributeParser = addressAttributeParser;
            this._addressAttributeService = addressAttributeService;
            this._addressAttributeFormatter = addressAttributeFormatter;
            this._affiliateService = affiliateService;
            this._pictureService = pictureService;
            this._customerActivityService = customerActivityService;
            this._cacheManager = cacheManager;
            this._orderSettings = orderSettings;
            this._currencySettings = currencySettings;
            this._taxSettings = taxSettings;
            this._measureSettings = measureSettings;
            this._addressSettings = addressSettings;
            this._shippingSettings = shippingSettings;
		}
        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,
            IPromosPriceCalculationService promosPriceCalculationService,
            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,
            IAddressAttributeFormatter addressAttributeFormatter,
            HttpContextBase httpContext,
            MediaSettings mediaSettings,
            ShoppingCartSettings shoppingCartSettings,
            CatalogSettings catalogSettings,
            OrderSettings orderSettings,
            ShippingSettings shippingSettings,
            TaxSettings taxSettings,
            CaptchaSettings captchaSettings,
            AddressSettings addressSettings,
            RewardPointsSettings rewardPointsSettings,
            PromoSettings promoSettings,
            IPromoService promoService,
            IPromoUtilities promoUtilities)
            : base(productService, storeContext, workContext,
                    shoppingCartService, pictureService, localizationService,
                    productAttributeService, productAttributeFormatter,
                    productAttributeParser, taxService, currencyService,
                    priceCalculationService, priceFormatter, checkoutAttributeParser,
                    checkoutAttributeFormatter, orderProcessingService, discountService,
                    customerService, giftCardService, countryService,
                    stateProvinceService, shippingService, orderTotalCalculationService,
                    checkoutAttributeService, paymentService, workflowMessageService,
                    permissionService, downloadService, cacheManager, webHelper,
                    customerActivityService, genericAttributeService,
                    addressAttributeFormatter, httpContext, mediaSettings,
                    shoppingCartSettings, catalogSettings, orderSettings, shippingSettings,
                    taxSettings, captchaSettings, addressSettings,
                    rewardPointsSettings)
        {
            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._promosPriceCalculationService = promosPriceCalculationService;
            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._addressAttributeFormatter = addressAttributeFormatter;
            this._httpContext = httpContext;

            this._mediaSettings = mediaSettings;
            this._shoppingCartSettings = shoppingCartSettings;
            this._catalogSettings = catalogSettings;
            this._orderSettings = orderSettings;
            this._shippingSettings = shippingSettings;
            this._taxSettings = taxSettings;
            this._captchaSettings = captchaSettings;
            this._addressSettings = addressSettings;
            this._rewardPointsSettings = rewardPointsSettings;

            this._promoSettings = promoSettings;
            this._promoService = promoService;
            this._promoUtilities = promoUtilities;
        }
        public new void SetUp()
        {
            _workContext = MockRepository.GenerateMock<IWorkContext>();

            _store = new Store() { Id = 1 };
            _storeContext = MockRepository.GenerateMock<IStoreContext>();
            _storeContext.Expect(x => x.CurrentStore).Return(_store);

            var pluginFinder = new PluginFinder();
            var cacheManager = new NopNullCache();

            //price calculation service
            _discountService = MockRepository.GenerateMock<IDiscountService>();
            _categoryService = MockRepository.GenerateMock<ICategoryService>();
            _productAttributeParser = MockRepository.GenerateMock<IProductAttributeParser>();

            _shoppingCartSettings = new ShoppingCartSettings();
            _catalogSettings = new CatalogSettings();

            _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(cacheManager,
                _shippingMethodRepository,
                _logger,
                _productAttributeParser,
                _checkoutAttributeParser,
                _genericAttributeService,
                _localizationService,
                _shippingSettings, pluginFinder,
                _eventPublisher, _shoppingCartSettings);

            _paymentService = MockRepository.GenerateMock<IPaymentService>();
            _checkoutAttributeParser = MockRepository.GenerateMock<ICheckoutAttributeParser>();
            _giftCardService = MockRepository.GenerateMock<IGiftCardService>();
            _genericAttributeService = MockRepository.GenerateMock<IGenericAttributeService>();

            _eventPublisher = MockRepository.GenerateMock<IEventPublisher>();
            _eventPublisher.Expect(x => x.Publish(Arg<object>.Is.Anything));

            //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);
        }
Пример #51
0
 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,
     IDownloadService downloadService,
     IAddressAttributeFormatter addressAttributeFormatter,
     IStoreContext storeContext,
     IOrderTotalCalculationService orderTotalCalculationService,
     IRewardPointsService rewardPointsService,
     IGiftCardService giftCardService,
     CatalogSettings catalogSettings,
     OrderSettings orderSettings,
     TaxSettings taxSettings,
     ShippingSettings shippingSettings, 
     AddressSettings addressSettings,
     RewardPointsSettings rewardPointsSettings,
     PdfSettings pdfSettings)
 {
     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._downloadService = downloadService;
     this._addressAttributeFormatter = addressAttributeFormatter;
     this._storeContext = storeContext;
     this._rewardPointsService = rewardPointsService;
     this._giftCardService = giftCardService;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._catalogSettings = catalogSettings;
     this._orderSettings = orderSettings;
     this._taxSettings = taxSettings;
     this._shippingSettings = shippingSettings;
     this._addressSettings = addressSettings;
     this._rewardPointsSettings = rewardPointsSettings;
     this._pdfSettings = pdfSettings;
 }