public PriceCalculationService(
            IDiscountService discountService,
			ICategoryService categoryService,
            IProductAttributeParser productAttributeParser,
			IProductService productService,
			ShoppingCartSettings shoppingCartSettings, 
            CatalogSettings catalogSettings,
			IProductAttributeService productAttributeService,
			IDownloadService downloadService,
			ICommonServices services,
			HttpRequestBase httpRequestBase,
			ITaxService taxService)
        {
            this._discountService = discountService;
            this._categoryService = categoryService;
            this._productAttributeParser = productAttributeParser;
            this._productService = productService;
            this._shoppingCartSettings = shoppingCartSettings;
            this._catalogSettings = catalogSettings;
            this._productAttributeService = productAttributeService;
            this._downloadService = downloadService;
            this._services = services;
            this._httpRequestBase = httpRequestBase;
            this._taxService = taxService;
        }
 public EmployeeController(IEmployeeService employeeService, ITaxService taxService, IMapper mapper, IPathProvider pathProvider)
 {
     _employeeService = employeeService;
     _taxService = taxService;
     _mapper = mapper;
     _pathProvider = pathProvider;
 }
Exemplo n.º 3
0
        public CheckoutController(IWorkContext workContext,
            IShoppingCartService shoppingCartService, ILocalizationService localizationService,
            ITaxService taxService, ICurrencyService currencyService,
            IPriceFormatter priceFormatter, IOrderProcessingService orderProcessingService,
            ICustomerService customerService,  ICountryService countryService,
            IStateProvinceService stateProvinceService, IShippingService shippingService,
            IPaymentService paymentService, IOrderTotalCalculationService orderTotalCalculationService,
            ILogger logger, IOrderService orderService, IWebHelper webHelper,
            OrderSettings orderSettings, RewardPointsSettings rewardPointsSettings,
            PaymentSettings paymentSettings)
        {
            this._workContext = workContext;
            this._shoppingCartService = shoppingCartService;
            this._localizationService = localizationService;
            this._taxService = taxService;
            this._currencyService = currencyService;
            this._priceFormatter = priceFormatter;
            this._orderProcessingService = orderProcessingService;
            this._customerService = customerService;
            this._countryService = countryService;
            this._stateProvinceService = stateProvinceService;
            this._shippingService = shippingService;
            this._paymentService = paymentService;
            this._orderTotalCalculationService = orderTotalCalculationService;
            this._logger = logger;
            this._orderService = orderService;
            this._webHelper = webHelper;

            this._orderSettings = orderSettings;
            this._rewardPointsSettings = rewardPointsSettings;
            this._paymentSettings = paymentSettings;
        }
        public CheckoutAttributeFormatter(IWorkContext workContext,
            ICheckoutAttributeService checkoutAttributeService,
            ICheckoutAttributeParser checkoutAttributeParser,
            ICurrencyService currencyService,
            ITaxService taxService,
            IPriceFormatter priceFormatter,
            IDownloadService downloadService,
            IWebHelper webHelper,
            PromoSettings promoSettings,
            IPromoUtilities qixolPromoUtilities,
            IAttributeValueService attributeValueService)
            : base(workContext, checkoutAttributeService, checkoutAttributeParser,
                    currencyService, taxService, priceFormatter,
                    downloadService, webHelper)
        {
            this._workContext = workContext;
            this._checkoutAttributeService = checkoutAttributeService;
            this._checkoutAttributeParser = checkoutAttributeParser;
            this._currencyService = currencyService;
            this._taxService = taxService;
            this._priceFormatter = priceFormatter;
            this._downloadService = downloadService;
            this._webHelper = webHelper;

            this._promoSettings = promoSettings;
            this._qixolPromoUtilities = qixolPromoUtilities;
            this._attributeValueService = attributeValueService;
        }
Exemplo n.º 5
0
 /// <summary>
 /// CTR
 /// </summary>
 /// <param name="themes"></param>
 public CheckoutController(ICartService carts, ThemeService themes, ITaxService taxes, IShippingService shipping)
 {
     _CartService = carts;
     _ThemeService = themes;
     _TaxService = taxes;
     _ShippingService = shipping;
 }
 public GoogleCheckoutPaymentProcessor(ISettingService settingService, 
     IWebHelper webHelper, ITaxService taxService,
     IShippingService shippingService, 
     IOrderTotalCalculationService orderTotalCalculationService,
     IProductAttributeFormatter productAttributeFormatter,
     IPriceCalculationService priceCalculationService, IWorkContext workContext,
     ICustomerService customerService, IGenericAttributeService genericAttributeService, 
     ICountryService countryService,
     IStateProvinceService stateProvinceService, IOrderProcessingService orderProcessingService,
     IOrderService orderService, ILogger logger, HttpContextBase httpContext)
 {
     this._settingService = settingService;
     this._webHelper = webHelper;
     this._taxService = taxService;
     this._shippingService = shippingService;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._productAttributeFormatter = productAttributeFormatter;
     this._priceCalculationService = priceCalculationService;
     this._workContext = workContext;
     this._customerService = customerService;
     this._genericAttributeService = genericAttributeService;
     this._countryService = countryService;
     this._stateProvinceService = stateProvinceService;
     this._orderProcessingService = orderProcessingService;
     this._orderService = orderService;
     this._logger = logger;
     this._httpContext = httpContext;
 }
        public new void SetUp()
        {
			_store = new Store() { Id = 1 };
			_storeContext = MockRepository.GenerateMock<IStoreContext>();
			_storeContext.Expect(x => x.CurrentStore).Return(_store);

            _discountService = MockRepository.GenerateMock<IDiscountService>();

            _categoryService = MockRepository.GenerateMock<ICategoryService>();

            _productAttributeParser = MockRepository.GenerateMock<IProductAttributeParser>();
			_productService = MockRepository.GenerateMock<IProductService>();
			_productAttributeService = MockRepository.GenerateMock<IProductAttributeService>();

			_downloadService = MockRepository.GenerateMock<IDownloadService>();
			_commonServices = MockRepository.GenerateMock<ICommonServices>();
			_commonServices.Expect(x => x.StoreContext).Return(_storeContext);
			_httpRequestBase = MockRepository.GenerateMock<HttpRequestBase>();
			_taxService = MockRepository.GenerateMock<ITaxService>();

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

			_priceCalcService = new PriceCalculationService(_discountService, _categoryService, _productAttributeParser, _productService, _shoppingCartSettings, _catalogSettings,
				_productAttributeService, _downloadService, _commonServices, _httpRequestBase, _taxService);
        }
 /// <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;
 }
 public MiscFacebookShopController(IAclService aclService,
     ICacheManager cacheManager,
     CatalogSettings catalogSettings,
     ICategoryService categoryService,
     ICurrencyService currencyService,
     ILocalizationService localizationService,
     IPermissionService permissionService,
     IPictureService pictureService,
     IPriceCalculationService priceCalculationService,
     IPriceFormatter priceFormatter,
     IProductService productService,
     IStoreContext storeContext,
     IStoreMappingService storeMappingService,
     ITaxService taxService,
     IWorkContext workContext)
 {
     this._aclService = aclService;
     this._cacheManager = cacheManager;
     this._catalogSettings = catalogSettings;
     this._categoryService = categoryService;
     this._currencyService = currencyService;
     this._localizationService = localizationService;
     this._permissionService = permissionService;
     this._pictureService = pictureService;
     this._priceCalculationService = priceCalculationService;
     this._priceFormatter = priceFormatter;
     this._productService = productService;
     this._storeContext = storeContext;
     this._storeMappingService = storeMappingService;
     this._taxService = taxService;
     this._workContext = workContext;
 }
Exemplo n.º 10
0
        public new void SetUp()
        {
            _taxSettings = new TaxSettings();
            _taxSettings.DefaultTaxAddressId = 10;

            _workContext = null;

            _addressService = MockRepository.GenerateMock<IAddressService>();
            //default tax address
            _addressService.Expect(x => x.GetAddressById(_taxSettings.DefaultTaxAddressId)).Return(new Address { Id = _taxSettings.DefaultTaxAddressId });

            var pluginFinder = new PluginFinder();

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

            _geoLookupService = MockRepository.GenerateMock<IGeoLookupService>();
            _countryService = MockRepository.GenerateMock<ICountryService>();
            _logger = MockRepository.GenerateMock<ILogger>();
            _customerSettings = new CustomerSettings();
            _addressSettings = new AddressSettings();

            _taxService = new TaxService(_addressService, _workContext, _taxSettings,
                pluginFinder, _geoLookupService, _countryService, _logger
                , _customerSettings, _addressSettings);
        }
 public TaxStrikeIronController(ITaxService taxService,
     StrikeIronTaxSettings strikeIronTaxSettings, ISettingService settingService)
 {
     this._taxService = taxService;
     this._strikeIronTaxSettings = strikeIronTaxSettings;
     this._settingService = settingService;
 }
Exemplo n.º 12
0
 public FroogleService(IGoogleService googleService,
     IPriceCalculationService priceCalculationService,
     ITaxService taxService, 
     IProductService productService,
     ICategoryService categoryService,
     IManufacturerService manufacturerService,
     IPictureService pictureService,
     ICurrencyService currencyService,
     ILanguageService languageService,
     ISettingService settingService,
     IWorkContext workContext,
     IMeasureService measureService,
     MeasureSettings measureSettings,
     FroogleSettings froogleSettings,
     CurrencySettings currencySettings,
     GoogleProductObjectContext objectContext)
 {
     this._googleService = googleService;
     this._priceCalculationService = priceCalculationService;
     this._taxService = taxService;
     this._productService = productService;
     this._categoryService = categoryService;
     this._manufacturerService = manufacturerService;
     this._pictureService = pictureService;
     this._currencyService = currencyService;
     this._languageService = languageService;
     this._settingService = settingService;
     this._workContext = workContext;
     this._measureService = measureService;
     this._measureSettings = measureSettings;
     this._froogleSettings = froogleSettings;
     this._currencySettings = currencySettings;
     this._objectContext = objectContext;
 }
Exemplo n.º 13
0
        public CatalogController(ICategoryService categoryService, 
            IManufacturerService manufacturerService, IProductService productService, 
            IProductTemplateService productTemplateService,
            ICategoryTemplateService categoryTemplateService,
            IManufacturerTemplateService manufacturerTemplateService,
            IProductAttributeService productAttributeService, IProductAttributeParser productAttributeParser, 
            IWorkContext workContext, ITaxService taxService, ICurrencyService currencyService,
            IPictureService pictureService, ILocalizationService localizationService,
            IPriceCalculationService priceCalculationService, IPriceFormatter priceFormatter,
            IWebHelper webHelper, ISpecificationAttributeService specificationAttributeService,
            ICustomerContentService customerContentService, IDateTimeHelper dateTimeHelper,
            IShoppingCartService shoppingCartService,
            IRecentlyViewedProductsService recentlyViewedProductsService, ICompareProductsService compareProductsService,
            IWorkflowMessageService workflowMessageService, IProductTagService productTagService,
            IOrderReportService orderReportService, ICustomerService customerService,
            IBackInStockSubscriptionService backInStockSubscriptionService,
            IPermissionService permissionService,
            MediaSettings mediaSetting, CatalogSettings catalogSettings,
            ShoppingCartSettings shoppingCartSettings, StoreInformationSettings storeInformationSettings,
            LocalizationSettings localizationSettings, CustomerSettings customerSettings, ICacheManager cacheManager)
        {
            this._categoryService = categoryService;
            this._manufacturerService = manufacturerService;
            this._productService = productService;
            this._productTemplateService = productTemplateService;
            this._categoryTemplateService = categoryTemplateService;
            this._manufacturerTemplateService = manufacturerTemplateService;
            this._productAttributeService = productAttributeService;
            this._productAttributeParser = productAttributeParser;
            this._workContext = workContext;
            this._taxService = taxService;
            this._currencyService = currencyService;
            this._pictureService = pictureService;
            this._localizationService = localizationService;
            this._priceCalculationService = priceCalculationService;
            this._priceFormatter = priceFormatter;
            this._webHelper = webHelper;
            this._specificationAttributeService = specificationAttributeService;
            this._customerContentService = customerContentService;
            this._dateTimeHelper = dateTimeHelper;
            this._shoppingCartService = shoppingCartService;
            this._recentlyViewedProductsService = recentlyViewedProductsService;
            this._compareProductsService = compareProductsService;
            this._workflowMessageService = workflowMessageService;
            this._productTagService = productTagService;
            this._orderReportService = orderReportService;
            this._customerService = customerService;
            this._backInStockSubscriptionService = backInStockSubscriptionService;
            this._permissionService = permissionService;

            this._mediaSetting = mediaSetting;
            this._catalogSettings = catalogSettings;
            this._shoppingCartSettings = shoppingCartSettings;
            this._storeInformationSettings = storeInformationSettings;
            this._localizationSettings = localizationSettings;
            this._customerSettings = customerSettings;

            this._cacheManager = cacheManager;
        }
Exemplo n.º 14
0
        public ProductController(
			ICommonServices services,
			IManufacturerService manufacturerService,
			IProductService productService,
			IProductAttributeService productAttributeService,
			IProductAttributeParser productAttributeParser,
			ITaxService taxService,
			ICurrencyService currencyService,
			IPictureService pictureService,
			IPriceCalculationService priceCalculationService, 
			IPriceFormatter priceFormatter,
			ICustomerContentService customerContentService, 
			ICustomerService customerService,
			IShoppingCartService shoppingCartService,
			IRecentlyViewedProductsService recentlyViewedProductsService, 
			IWorkflowMessageService workflowMessageService, 
			IProductTagService productTagService,
			IOrderReportService orderReportService,
			IBackInStockSubscriptionService backInStockSubscriptionService, 
			IAclService aclService,
			IStoreMappingService storeMappingService,
			MediaSettings mediaSettings, 
			CatalogSettings catalogSettings,
			ShoppingCartSettings shoppingCartSettings,
			LocalizationSettings localizationSettings, 
			CaptchaSettings captchaSettings,
			CatalogHelper helper,
            IDownloadService downloadService,
            ILocalizationService localizationService)
        {
            this._services = services;
            this._manufacturerService = manufacturerService;
            this._productService = productService;
            this._productAttributeService = productAttributeService;
            this._productAttributeParser = productAttributeParser;
            this._taxService = taxService;
            this._currencyService = currencyService;
            this._pictureService = pictureService;
            this._priceCalculationService = priceCalculationService;
            this._priceFormatter = priceFormatter;
            this._customerContentService = customerContentService;
            this._customerService = customerService;
            this._shoppingCartService = shoppingCartService;
            this._recentlyViewedProductsService = recentlyViewedProductsService;
            this._workflowMessageService = workflowMessageService;
            this._productTagService = productTagService;
            this._orderReportService = orderReportService;
            this._backInStockSubscriptionService = backInStockSubscriptionService;
            this._aclService = aclService;
            this._storeMappingService = storeMappingService;
            this._mediaSettings = mediaSettings;
            this._catalogSettings = catalogSettings;
            this._shoppingCartSettings = shoppingCartSettings;
            this._localizationSettings = localizationSettings;
            this._captchaSettings = captchaSettings;
            this._helper = helper;
            this._downloadService = downloadService;
            this._localizationService = localizationService;
        }
 public CartService(IRepository<Customer> repositoryCustomer, 
     IRepository<Product> repositoryProduct, IUnitOfWork unitOfWork, ITaxService taxDomainService)
 {
     this.repositoryCustomer = repositoryCustomer;
     this.repositoryProduct = repositoryProduct;
     this.unitOfWork = unitOfWork;
     this.taxDomainService = taxDomainService;
 }
		public HadSpentAmountRule(
            IOrderService orderService,
            IPriceCalculationService priceCalculationService,
            ITaxService taxService)
        {
			this._orderService = orderService;
            this._priceCalculationService = priceCalculationService;
            this._taxService = taxService;
        }
        public CheckoutController(IWorkContext workContext,
            IStoreContext storeContext,
            IStoreMappingService storeMappingService,
            IShoppingCartService shoppingCartService, 
            ILocalizationService localizationService, 
            ITaxService taxService, 
            ICurrencyService currencyService, 
            IPriceFormatter priceFormatter, 
            IOrderProcessingService orderProcessingService,
            ICustomerService customerService, 
            IGenericAttributeService genericAttributeService,
            ICountryService countryService,
            IStateProvinceService stateProvinceService,
            IShippingService shippingService, 
            IPaymentService paymentService,
            IPluginFinder pluginFinder,
            IOrderTotalCalculationService orderTotalCalculationService,
            ILogger logger,
            IOrderService orderService,
            IWebHelper webHelper,
            HttpContextBase httpContext,
            IMobileDeviceHelper mobileDeviceHelper,
            OrderSettings orderSettings, 
            RewardPointsSettings rewardPointsSettings,
            PaymentSettings paymentSettings,
            ShippingSettings shippingSettings,
            AddressSettings addressSettings)
        {
            this._workContext = workContext;
            this._storeContext = storeContext;
            this._storeMappingService = storeMappingService;
            this._shoppingCartService = shoppingCartService;
            this._localizationService = localizationService;
            this._taxService = taxService;
            this._currencyService = currencyService;
            this._priceFormatter = priceFormatter;
            this._orderProcessingService = orderProcessingService;
            this._customerService = customerService;
            this._genericAttributeService = genericAttributeService;
            this._countryService = countryService;
            this._stateProvinceService = stateProvinceService;
            this._shippingService = shippingService;
            this._paymentService = paymentService;
            this._pluginFinder = pluginFinder;
            this._orderTotalCalculationService = orderTotalCalculationService;
            this._logger = logger;
            this._orderService = orderService;
            this._webHelper = webHelper;
            this._httpContext = httpContext;
            this._mobileDeviceHelper = mobileDeviceHelper;

            this._orderSettings = orderSettings;
            this._rewardPointsSettings = rewardPointsSettings;
            this._paymentSettings = paymentSettings;
            this._shippingSettings = shippingSettings;
            this._addressSettings = addressSettings;
        }
Exemplo n.º 18
0
 public PurchasingController(IInventoryService inventoryService,
     IFinancialService financialService,
     IPurchasingService purchasingService,
     ITaxService taxService)
 {
     _inventoryService = inventoryService;
     _financialService = financialService;
     _purchasingService = purchasingService;
     _taxService = taxService;
 }
		public StoreModuleController(IStoreService storeService, IShippingService shippingService, IPaymentMethodsService paymentService, ITaxService taxService, 
                                     ISecurityService securityService, IPermissionScopeService permissionScopeService)
		{
			_storeService = storeService;
			_shippingService = shippingService;
			_paymentService = paymentService;
            _taxService = taxService;
            _securityService = securityService;
            _permissionScopeService = permissionScopeService;
        }
Exemplo n.º 20
0
 public TaxController(ITaxService taxService,
     ITaxCategoryService taxCategoryService, TaxSettings taxSettings,
     ISettingService settingService, IPermissionService permissionService)
 {
     this._taxService = taxService;
     this._taxCategoryService = taxCategoryService;
     this._taxSettings = taxSettings;
     this._settingService = settingService;
     this._permissionService = permissionService;
 }
		public HadSpentAmountDiscountRequirementRule(
            ILocalizationService localizationService, 
            IOrderService orderService,
            IPriceCalculationService priceCalculationService,
            ITaxService taxService)
        {
            this._localizationService = localizationService;
			this._orderService = orderService;
            this._priceCalculationService = priceCalculationService;
            this._taxService = taxService;
        }
Exemplo n.º 22
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, 
            IDownloadService downloadService,
            MediaSettings mediaSetting, ShoppingCartSettings shoppingCartSettings,
            CatalogSettings catalogSettings, OrderSettings orderSettings,
            ShippingSettings shippingSettings, TaxSettings taxSettings,
            CaptchaSettings captchaSettings)
        {
            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._downloadService = downloadService;

            this._mediaSetting = mediaSetting;
            this._shoppingCartSettings = shoppingCartSettings;
            this._catalogSettings = catalogSettings;
            this._orderSettings = orderSettings;
            this._shippingSettings = shippingSettings;
            this._taxSettings = taxSettings;
            this._captchaSettings = captchaSettings;
        }
 public StoreModuleController(IStoreService storeService, IShippingMethodsService shippingService, IPaymentMethodsService paymentService, ITaxService taxService,
                              ISecurityService securityService, IPermissionScopeService permissionScopeService, INotificationManager notificationManager)
 {
     _storeService = storeService;
     _shippingService = shippingService;
     _paymentService = paymentService;
     _taxService = taxService;
     _securityService = securityService;
     _permissionScopeService = permissionScopeService;
     _notificationManager = notificationManager;
 }
Exemplo n.º 24
0
		public StoreServiceImpl(Func<IStoreRepository> repositoryFactory, ICommerceService commerceService, ISettingsManager settingManager, 
							    IDynamicPropertyService dynamicPropertyService, IShippingMethodsService shippingService, IPaymentMethodsService paymentService, ITaxService taxService)
        {
            _repositoryFactory = repositoryFactory;
            _commerceService = commerceService;
            _settingManager = settingManager;
            _dynamicPropertyService = dynamicPropertyService;
            _shippingService = shippingService;
            _paymentService = paymentService;
            _taxService = taxService;
        }
Exemplo n.º 25
0
 public ShoppingCartController(ICustomerService customerService,
     IDateTimeHelper dateTimeHelper, IPriceFormatter priceFormatter,
     ITaxService taxService, IPriceCalculationService priceCalculationService,
     IPermissionService permissionService)
 {
     this._customerService = customerService;
     this._dateTimeHelper = dateTimeHelper;
     this._priceFormatter = priceFormatter;
     this._taxService = taxService;
     this._priceCalculationService = priceCalculationService;
     this._permissionService = permissionService;
 }
Exemplo n.º 26
0
        public CustomerController(IAuthenticationService authenticationService,
            IDateTimeHelper dateTimeHelper,
            DateTimeSettings dateTimeSettings, TaxSettings taxSettings,
            ILocalizationService localizationService,
            IWorkContext workContext, ICustomerService customerService,
            ITaxService taxService, RewardPointsSettings rewardPointsSettings,
            CustomerSettings customerSettings, ForumSettings forumSettings,
            OrderSettings orderSettings, IAddressService addressService,
            ICountryService countryService, IStateProvinceService stateProvinceService,
            IOrderTotalCalculationService orderTotalCalculationService,
            IOrderProcessingService orderProcessingService, IOrderService orderService,
            ICurrencyService currencyService, IPriceFormatter priceFormatter,
            IPictureService pictureService, INewsLetterSubscriptionService newsLetterSubscriptionService,
            IForumService forumService, IShoppingCartService shoppingCartService,
            IOpenAuthenticationService openAuthenticationService,
            IBackInStockSubscriptionService backInStockSubscriptionService, MediaSettings mediaSettings,
            IWorkflowMessageService workflowMessageService, LocalizationSettings localizationSettings,
            CaptchaSettings captchaSettings, ExternalAuthenticationSettings externalAuthenticationSettings)
        {
            this._authenticationService = authenticationService;
            this._dateTimeHelper = dateTimeHelper;
            this._dateTimeSettings = dateTimeSettings;
            this._taxSettings = taxSettings;
            this._localizationService = localizationService;
            this._workContext = workContext;
            this._customerService = customerService;
            this._taxService = taxService;
            this._rewardPointsSettings = rewardPointsSettings;
            this._customerSettings = customerSettings;
            this._forumSettings = forumSettings;
            this._orderSettings = orderSettings;
            this._addressService = addressService;
            this._countryService = countryService;
            this._stateProvinceService = stateProvinceService;
            this._orderProcessingService = orderProcessingService;
            this._orderTotalCalculationService = orderTotalCalculationService;
            this._orderService = orderService;
            this._currencyService = currencyService;
            this._priceFormatter = priceFormatter;
            this._pictureService = pictureService;
            this._newsLetterSubscriptionService = newsLetterSubscriptionService;
            this._forumService = forumService;
            this._shoppingCartService = shoppingCartService;
            this._openAuthenticationService = openAuthenticationService;
            this._backInStockSubscriptionService = backInStockSubscriptionService;

            this._mediaSettings = mediaSettings;
            this._workflowMessageService = workflowMessageService;
            this._localizationSettings = localizationSettings;
            this._captchaSettings = captchaSettings;
            this._externalAuthenticationSettings = externalAuthenticationSettings;
        }
Exemplo n.º 27
0
 public OrderController(DataContext db, ICustomerService customerService, IProductFinder productFinder,
     IShippingService shippingService, ITaxService taxService, ISettingService settingService,
     IOrderService orderService, IOptionService optionService)
     : base(db)
 {
     this.customerService = customerService;
     this.productFinder = productFinder;
     this.shippingService = shippingService;
     this.taxService = taxService;
     this.settingService = settingService;
     this.orderService = orderService;
     this.optionService = optionService;
 }
 public CheckoutAttributeFormatter(IWorkContext workContext,
     ICheckoutAttributeService checkoutAttributeService,
     ICheckoutAttributeParser checkoutAttributeParser,
     ICurrencyService currencyService,
     ITaxService taxService,
     IPriceFormatter priceFormatter)
 {
     this._workContext = workContext;
     this._checkoutAttributeService = checkoutAttributeService;
     this._checkoutAttributeParser = checkoutAttributeParser;
     this._currencyService = currencyService;
     this._taxService = taxService;
     this._priceFormatter = priceFormatter;
 }
 public PayPalStandardPaymentProcessor(PayPalStandardPaymentSettings paypalStandardPaymentSettings,
     ISettingService settingService, ICurrencyService currencyService,
     CurrencySettings currencySettings, IWebHelper webHelper,
     ICheckoutAttributeParser checkoutAttributeParser, ITaxService taxService,
     HttpContextBase httpContext)
 {
     this._paypalStandardPaymentSettings = paypalStandardPaymentSettings;
     this._settingService = settingService;
     this._currencyService = currencyService;
     this._currencySettings = currencySettings;
     this._webHelper = webHelper;
     this._checkoutAttributeParser = checkoutAttributeParser;
     this._taxService = taxService;
     this._httpContext = httpContext;
 }
Exemplo n.º 30
0
 public ProductAttributeFormatter(IWorkContext workContext,
     IProductAttributeService productAttributeService,
     IProductAttributeParser productAttributeParser,
     ICurrencyService currencyService,
     ILocalizationService localizationService,
     ITaxService taxService,
     IPriceFormatter priceFormatter)
 {
     this._workContext = workContext;
     this._productAttributeService = productAttributeService;
     this._productAttributeParser = productAttributeParser;
     this._currencyService = currencyService;
     this._localizationService = localizationService;
     this._taxService = taxService;
     this._priceFormatter = priceFormatter;
 }
        public new void SetUp()
        {
            _taxSettings = new TaxSettings();
            _taxSettings.DefaultTaxAddressId = 10;

            _workContext = null;

            _addressService = MockRepository.GenerateMock <IAddressService>();
            //default tax address
            _addressService.Expect(x => x.GetAddressById(_taxSettings.DefaultTaxAddressId)).Return(new Address()
            {
                Id = _taxSettings.DefaultTaxAddressId
            });

            var pluginFinder = new PluginFinder();

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

            _taxService = new TaxService(_addressService, _workContext, _taxSettings, pluginFinder);
        }
Exemplo n.º 32
0
 public PayPalExpressCheckoutShippingMethodService(
     IAddressService addressService,
     IShippingService shippingService,
     IWorkContext workContext,
     IGenericAttributeService genericAttributeService,
     IStoreContext storeContext,
     IOrderTotalCalculationService orderTotalCalculationService,
     ITaxService taxService,
     ICurrencyService currencyService,
     IPriceFormatter priceFormatter)
 {
     _addressService               = addressService;
     _shippingService              = shippingService;
     _workContext                  = workContext;
     _genericAttributeService      = genericAttributeService;
     _storeContext                 = storeContext;
     _orderTotalCalculationService = orderTotalCalculationService;
     _taxService      = taxService;
     _currencyService = currencyService;
     _priceFormatter  = priceFormatter;
 }
Exemplo n.º 33
0
        public OrderCalculationService(
            SmartDbContext db,
            IPriceCalculationService priceCalculationService,
            IProductService productService,
            IDiscountService discountService,
            IShippingService shippingService,
            IGiftCardService giftCardService,
            ICurrencyService currencyService,
            IProviderManager providerManager,
            ICheckoutAttributeMaterializer checkoutAttributeMaterializer,
            IWorkContext workContext,
            IStoreContext storeContext,
            ITaxService taxService,
            ITaxCalculator taxCalculator,
            TaxSettings taxSettings,
            RewardPointsSettings rewardPointsSettings,
            CatalogSettings catalogSettings,
            ShippingSettings shippingSettings)
        {
            _db = db;
            _priceCalculationService       = priceCalculationService;
            _productService                = productService;
            _discountService               = discountService;
            _shippingService               = shippingService;
            _giftCardService               = giftCardService;
            _currencyService               = currencyService;
            _providerManager               = providerManager;
            _checkoutAttributeMaterializer = checkoutAttributeMaterializer;
            _workContext          = workContext;
            _storeContext         = storeContext;
            _taxService           = taxService;
            _taxCalculator        = taxCalculator;
            _taxSettings          = taxSettings;
            _rewardPointsSettings = rewardPointsSettings;
            _catalogSettings      = catalogSettings;
            _shippingSettings     = shippingSettings;

            _primaryCurrency = currencyService.PrimaryCurrency;
            _workingCurrency = workContext.WorkingCurrency;
        }
 public ZboziShoppingService(IZboziService zboziService,
                             IPriceCalculationService priceCalculationService,
                             ITaxService taxService,
                             IProductService productService,
                             ICategoryService categoryService,
                             IManufacturerService manufacturerService,
                             IPictureService pictureService,
                             ICurrencyService currencyService,
                             ILanguageService languageService,
                             ISettingService settingService,
                             IWorkContext workContext,
                             IMeasureService measureService,
                             IDateRangeService dateRangeService,
                             Nop.Services.Shipping.IShippingService shippingService,
                             IShippingByWeightService shippingByWeightService,
                             MeasureSettings measureSettings,
                             ZboziShoppingSettings zbozihoppingSettings,
                             CurrencySettings currencySettings,
                             ZboziProductObjectContext objectContext)
 {
     this._shippingByWeightService = shippingByWeightService;
     this._shippingService         = shippingService;
     this._dateRangeService        = dateRangeService;
     this._zboziService            = zboziService;
     this._priceCalculationService = priceCalculationService;
     this._taxService            = taxService;
     this._productService        = productService;
     this._categoryService       = categoryService;
     this._manufacturerService   = manufacturerService;
     this._pictureService        = pictureService;
     this._currencyService       = currencyService;
     this._languageService       = languageService;
     this._settingService        = settingService;
     this._workContext           = workContext;
     this._measureService        = measureService;
     this._measureSettings       = measureSettings;
     this._zboziShoppingSettings = zbozihoppingSettings;
     this._currencySettings      = currencySettings;
     this._objectContext         = objectContext;
 }
        public PaymentPayPalPlusBrasilController(IWorkContext workContext,
                                                 IStoreService storeService,
                                                 ISettingService settingService,
                                                 IPaymentService paymentService,
                                                 IOrderService orderService,
                                                 IOrderProcessingService orderProcessingService,
                                                 ILogger logger,
                                                 PaymentSettings paymentSettings,
                                                 ILocalizationService localizationService,
                                                 IWebHelper webHelper,
                                                 ICustomerService customerService,
                                                 IStoreContext storeContext,
                                                 IOrderTotalCalculationService orderTotalCalculationService,
                                                 IAddressAttributeParser addressAttributeParser,
                                                 ITaxService taxService,
                                                 IPriceCalculationService priceCalculationService,
                                                 IPayPalPlusCustomerService payPalPlusCustomerService)
        {
            _workContext            = workContext;
            _storeService           = storeService;
            _settingService         = settingService;
            _paymentService         = paymentService;
            _orderService           = orderService;
            _orderProcessingService = orderProcessingService;
            _logger                       = logger;
            _paymentSettings              = paymentSettings;
            _localizationService          = localizationService;
            _webHelper                    = webHelper;
            _customerService              = customerService;
            _storeContext                 = storeContext;
            _orderTotalCalculationService = orderTotalCalculationService;
            _addressAttributeParser       = addressAttributeParser;
            _taxService                   = taxService;
            _priceCalculationService      = priceCalculationService;
            _payPalPlusCustomerService    = payPalPlusCustomerService;

            _jsonSettings = new JsonSerializerSettings {
                NullValueHandling = NullValueHandling.Ignore
            };
        }
Exemplo n.º 36
0
 public AddToCartController(IProductService productService,
                            IProductReservationService productReservationService,
                            IShoppingCartService shoppingCartService,
                            IShoppingCartViewModelService shoppingCartViewModelService,
                            IWorkContext workContext,
                            IStoreContext storeContext,
                            ILocalizationService localizationService,
                            IWebHelper webHelper,
                            ICurrencyService currencyService,
                            IPermissionService permissionService,
                            ICustomerActivityService customerActivityService,
                            ICacheManager cacheManager,
                            ITaxService taxService,
                            IProductAttributeParser productAttributeParser,
                            IPriceCalculationService priceCalculationService,
                            IPriceFormatter priceFormatter,
                            IPictureService pictureService,
                            ShoppingCartSettings shoppingCartSettings,
                            MediaSettings mediaSettings)
 {
     this._productService               = productService;
     this._productReservationService    = productReservationService;
     this._shoppingCartService          = shoppingCartService;
     this._shoppingCartViewModelService = shoppingCartViewModelService;
     this._workContext             = workContext;
     this._storeContext            = storeContext;
     this._localizationService     = localizationService;
     this._webHelper               = webHelper;
     this._currencyService         = currencyService;
     this._permissionService       = permissionService;
     this._customerActivityService = customerActivityService;
     this._cacheManager            = cacheManager;
     this._taxService              = taxService;
     this._productAttributeParser  = productAttributeParser;
     this._priceCalculationService = priceCalculationService;
     this._priceFormatter          = priceFormatter;
     this._pictureService          = pictureService;
     this._mediaSettings           = mediaSettings;
     this._shoppingCartSettings    = shoppingCartSettings;
 }
 public FacebookPixelService(CurrencySettings currencySettings,
                             ICategoryService categoryService,
                             ICountryService countryService,
                             ICurrencyService currencyService,
                             IGenericAttributeService genericAttributeService,
                             IHttpContextAccessor httpContextAccessor,
                             ILogger logger,
                             IOrderService orderService,
                             IOrderTotalCalculationService orderTotalCalculationService,
                             IPriceCalculationService priceCalculationService,
                             IProductService productService,
                             IRepository <FacebookPixelConfiguration> facebookPixelConfigurationRepository,
                             IShoppingCartService shoppingCartService,
                             IStateProvinceService stateProvinceService,
                             IStaticCacheManager staticCacheManager,
                             IStoreContext storeContext,
                             ITaxService taxService,
                             IWidgetPluginManager widgetPluginManager,
                             IWorkContext workContext)
 {
     _currencySettings        = currencySettings;
     _categoryService         = categoryService;
     _countryService          = countryService;
     _currencyService         = currencyService;
     _genericAttributeService = genericAttributeService;
     _httpContextAccessor     = httpContextAccessor;
     _logger       = logger;
     _orderService = orderService;
     _orderTotalCalculationService = orderTotalCalculationService;
     _priceCalculationService      = priceCalculationService;
     _productService = productService;
     _facebookPixelConfigurationRepository = facebookPixelConfigurationRepository;
     _shoppingCartService  = shoppingCartService;
     _stateProvinceService = stateProvinceService;
     _staticCacheManager   = staticCacheManager;
     _storeContext         = storeContext;
     _taxService           = taxService;
     _widgetPluginManager  = widgetPluginManager;
     _workContext          = workContext;
 }
Exemplo n.º 38
0
 public GoogleShoppingService(IGoogleService googleService,
                              IPriceCalculationService priceCalculationService,
                              ITaxService taxService,
                              IProductService productService,
                              ICategoryService categoryService,
                              IManufacturerService manufacturerService,
                              IPictureService pictureService,
                              ICurrencyService currencyService,
                              ILanguageService languageService,
                              ISettingService settingService,
                              IWorkContext workContext,
                              IMeasureService measureService,
                              IServiceProvider serviceProvider,
                              MeasureSettings measureSettings,
                              GoogleShoppingSettings googleShoppingSettings,
                              CurrencySettings currencySettings,
                              IWebHelper webHelper,
                              IUrlHelperFactory urlHelperFactory,
                              IActionContextAccessor actionContextAccessor)
 {
     _googleService           = googleService;
     _priceCalculationService = priceCalculationService;
     _taxService             = taxService;
     _productService         = productService;
     _categoryService        = categoryService;
     _manufacturerService    = manufacturerService;
     _pictureService         = pictureService;
     _currencyService        = currencyService;
     _languageService        = languageService;
     _settingService         = settingService;
     _workContext            = workContext;
     _measureService         = measureService;
     _serviceProvider        = serviceProvider;
     _measureSettings        = measureSettings;
     _googleShoppingSettings = googleShoppingSettings;
     _currencySettings       = currencySettings;
     _webHelper             = webHelper;
     _urlHelperFactory      = urlHelperFactory;
     _actionContextAccessor = actionContextAccessor;
 }
Exemplo n.º 39
0
 public FinancialService(IInventoryService inventoryService,
                         ITaxService taxService,
                         IRepository <GeneralLedgerHeader> generalLedgerRepository,
                         IRepository <GeneralLedgerLine> generalLedgerLineRepository,
                         IRepository <Account> accountRepo,
                         IRepository <Tax> taxRepo,
                         IRepository <JournalEntryHeader> journalEntryRepo,
                         IRepository <FinancialYear> fiscalYearRepo,
                         IRepository <TaxGroup> taxGroupRepo,
                         IRepository <ItemTaxGroup> itemTaxGroupRepo,
                         IRepository <PaymentTerm> paymentTermRepo,
                         IRepository <Bank> bankRepo,
                         IRepository <Item> itemRepo,
                         IRepository <GeneralLedgerSetting> glSettingRepo,
                         IRepository <MainContraAccount> maincontraAccount = null,
                         IRepository <Customer> customerRepo = null,
                         IRepository <Vendor> vendorRepo     = null,
                         IRepository <GeneralLedgerSetting> generalLedgerSettingRepo = null
                         )
     : base(null, null, paymentTermRepo, bankRepo)
 {
     _inventoryService        = inventoryService;
     _taxService              = taxService;
     _generalLedgerRepository = generalLedgerRepository;
     _accountRepo             = accountRepo;
     _taxRepo                     = taxRepo;
     _journalEntryRepo            = journalEntryRepo;
     _generalLedgerLineRepository = generalLedgerLineRepository;
     _fiscalYearRepo              = fiscalYearRepo;
     _taxGroupRepo                = taxGroupRepo;
     _itemTaxGroupRepo            = itemTaxGroupRepo;
     _paymentTermRepo             = paymentTermRepo;
     _bankRepo                    = bankRepo;
     _itemRepo                    = itemRepo;
     _glSettingRepo               = glSettingRepo;
     _maincontraAccount           = maincontraAccount;
     _customerRepo                = customerRepo;
     _vendorRepo                  = vendorRepo;
     _generalLedgerSettingRepo    = generalLedgerSettingRepo;
 }
Exemplo n.º 40
0
        public ServiceManager(IAddressService addresService,
                              ICheckoutAttributeParser checkoutAttributeParser,
                              ICountryService countryService,
                              ICurrencyService currencyService,
                              IGenericAttributeService genericAttributeService,
                              ILogger logger,
                              IOrderTotalCalculationService orderTotalCalculationService,
                              IPriceCalculationService priceCalculationService,
                              IProductService productService,
                              IShippingPluginManager shippingPluginManager,
                              IShoppingCartService shoppingCartService,
                              IStateProvinceService stateProvinceService,
                              IStoreContext storeContext,
                              ITaxService taxService,
                              IWorkContext workContext,
                              CurrencySettings currencySettings,
                              PayPalSmartPaymentButtonsSettings settings)
        {
            _addresService           = addresService;
            _checkoutAttributeParser = checkoutAttributeParser;
            _countryService          = countryService;
            _currencyService         = currencyService;
            _genericAttributeService = genericAttributeService;
            _logger = logger;
            _orderTotalCalculationService = orderTotalCalculationService;
            _priceCalculationService      = priceCalculationService;
            _productService        = productService;
            _shippingPluginManager = shippingPluginManager;
            _shoppingCartService   = shoppingCartService;
            _stateProvinceService  = stateProvinceService;
            _storeContext          = storeContext;
            _taxService            = taxService;
            _workContext           = workContext;
            _currencySettings      = currencySettings;
            _settings = settings;

            _client = _settings.UseSandbox
                ? new PayPalHttpClient(new PayPal.Core.SandboxEnvironment(_settings.ClientId, _settings.SecretKey))
                : new PayPalHttpClient(new PayPal.Core.LiveEnvironment(_settings.ClientId, _settings.SecretKey));
        }
Exemplo n.º 41
0
 public WidgetsHomePageNewProductsController(
     IProductService productService,
     ISettingService settingService,
     IStoreService storeService,
     IWorkContext workContext,
     ILocalizationService localizationService,
     IStoreContext storeContext,
     ICategoryService categoryService,
     ISpecificationAttributeService specificationAttributeService,
     IPriceCalculationService priceCalculationService,
     IPriceFormatter priceFormatter,
     IPermissionService permissionService,
     ITaxService taxService,
     ICurrencyService currencyService,
     IPictureService pictureService,
     IWebHelper webHelper,
     ICacheManager cacheManager,
     CatalogSettings catalogSettings,
     MediaSettings mediaSettings)
 {
     _productService                = productService;
     _settingService                = settingService;
     _storeService                  = storeService;
     _workContext                   = workContext;
     _localizationService           = localizationService;
     _storeContext                  = storeContext;
     _categoryService               = categoryService;
     _specificationAttributeService = specificationAttributeService;
     _priceCalculationService       = priceCalculationService;
     _priceFormatter                = priceFormatter;
     _permissionService             = permissionService;
     _taxService      = taxService;
     _currencyService = currencyService;
     _pictureService  = pictureService;
     _webHelper       = webHelper;
     _cacheManager    = cacheManager;
     _catalogSettings = catalogSettings;
     _mediaSettings   = mediaSettings;
 }
Exemplo n.º 42
0
 public ShoppingCartController(ICustomerService customerService,
                               IDateTimeHelper dateTimeHelper,
                               IPriceFormatter priceFormatter,
                               IStoreService storeService,
                               ITaxService taxService,
                               IPriceCalculationService priceCalculationService,
                               IPermissionService permissionService,
                               ILocalizationService localizationService,
                               IProductAttributeFormatter productAttributeFormatter,
                               IShoppingCartService shoppingCartService)
 {
     this._customerService           = customerService;
     this._dateTimeHelper            = dateTimeHelper;
     this._priceFormatter            = priceFormatter;
     this._storeService              = storeService;
     this._taxService                = taxService;
     this._priceCalculationService   = priceCalculationService;
     this._permissionService         = permissionService;
     this._localizationService       = localizationService;
     this._productAttributeFormatter = productAttributeFormatter;
     this._shoppingCartService       = shoppingCartService;
 }
Exemplo n.º 43
0
 public ShoppingCartModelMapper(
     SmartDbContext db,
     ITaxService taxService,
     ICommonServices services,
     IMediaService mediaService,
     IPaymentService paymentService,
     IDiscountService discountService,
     ICurrencyService currencyService,
     IHttpContextAccessor httpContextAccessor,
     IShoppingCartValidator shoppingCartValidator,
     IOrderCalculationService orderCalculationService,
     ICheckoutAttributeFormatter checkoutAttributeFormatter,
     ICheckoutAttributeMaterializer checkoutAttributeMaterializer,
     ShoppingCartSettings shoppingCartSettings,
     CatalogSettings catalogSettings,
     MediaSettings mediaSettings,
     OrderSettings orderSettings,
     MeasureSettings measureSettings,
     ShippingSettings shippingSettings,
     RewardPointsSettings rewardPointsSettings,
     Localizer T)
     : base(services, shoppingCartSettings, catalogSettings, mediaSettings, T)
 {
     _db                            = db;
     _taxService                    = taxService;
     _mediaService                  = mediaService;
     _paymentService                = paymentService;
     _discountService               = discountService;
     _currencyService               = currencyService;
     _httpContextAccessor           = httpContextAccessor;
     _shoppingCartValidator         = shoppingCartValidator;
     _orderCalculationService       = orderCalculationService;
     _checkoutAttributeFormatter    = checkoutAttributeFormatter;
     _checkoutAttributeMaterializer = checkoutAttributeMaterializer;
     _shippingSettings              = shippingSettings;
     _orderSettings                 = orderSettings;
     _measureSettings               = measureSettings;
     _rewardPointsSettings          = rewardPointsSettings;
 }
Exemplo n.º 44
0
 public IdentityController(
     SmartDbContext db,
     UserManager <Customer> userManager,
     SignInManager <Customer> signInManager,
     RoleManager <CustomerRole> roleManager,
     IUserStore <Customer> userStore,
     ITaxService taxService,
     IAddressService addressService,
     IShoppingCartService shoppingCartService,
     IMessageFactory messageFactory,
     IWebHelper webHelper,
     IDateTimeHelper dateTimeHelper,
     CustomerSettings customerSettings,
     CaptchaSettings captchaSettings,
     DateTimeSettings dateTimeSettings,
     TaxSettings taxSettings,
     LocalizationSettings localizationSettings,
     ExternalAuthenticationSettings externalAuthenticationSettings,
     RewardPointsSettings rewardPointsSettings)
 {
     _db                             = db;
     _userManager                    = userManager;
     _signInManager                  = signInManager;
     _roleManager                    = roleManager;
     _userStore                      = userStore;
     _taxService                     = taxService;
     _addressService                 = addressService;
     _shoppingCartService            = shoppingCartService;
     _messageFactory                 = messageFactory;
     _webHelper                      = webHelper;
     _dateTimeHelper                 = dateTimeHelper;
     _customerSettings               = customerSettings;
     _captchaSettings                = captchaSettings;
     _dateTimeSettings               = dateTimeSettings;
     _taxSettings                    = taxSettings;
     _localizationSettings           = localizationSettings;
     _externalAuthenticationSettings = externalAuthenticationSettings;
     _rewardPointsSettings           = rewardPointsSettings;
 }
Exemplo n.º 45
0
 public PayPalStandardPaymentProcessor(CurrencySettings currencySettings,
                                       HttpContextBase httpContext,
                                       ICheckoutAttributeParser checkoutAttributeParser,
                                       ICurrencyService currencyService,
                                       ILocalizationService localizationService,
                                       IOrderTotalCalculationService orderTotalCalculationService,
                                       ISettingService settingService,
                                       ITaxService taxService,
                                       IWebHelper webHelper,
                                       PayPalStandardPaymentSettings paypalStandardPaymentSettings)
 {
     this._currencySettings             = currencySettings;
     this._httpContext                  = httpContext;
     this._checkoutAttributeParser      = checkoutAttributeParser;
     this._currencyService              = currencyService;
     this._localizationService          = localizationService;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._settingService               = settingService;
     this._taxService = taxService;
     this._webHelper  = webHelper;
     this._paypalStandardPaymentSettings = paypalStandardPaymentSettings;
 }
 public PayGatePaymentProcessor(PayGatePaymentSettings payGatePaymentSettings,
                                ISettingService settingService, ICurrencyService currencyService,
                                CurrencySettings currencySettings, IWebHelper webHelper,
                                ICheckoutAttributeParser checkoutAttributeParser, ITaxService taxService,
                                IOrderTotalCalculationService orderTotalCalculationService, ILocalizationService localizationService,
                                HttpContextBase httpContext, ILogger logger, IOrderService orderService,
                                IStoreContext storeContext)
 {
     this._storeContext                 = storeContext;
     this._logger                       = logger;
     this._payGatePaymentSettings       = payGatePaymentSettings;
     this._settingService               = settingService;
     this._currencyService              = currencyService;
     this._currencySettings             = currencySettings;
     this._webHelper                    = webHelper;
     this._checkoutAttributeParser      = checkoutAttributeParser;
     this._taxService                   = taxService;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._localizationService          = localizationService;
     this._httpContext                  = httpContext;
     this._orderService                 = orderService;
 }
Exemplo n.º 47
0
 public ShoppingCartController(IBaseService baseService, ILogger logger, IWebHelper webHelper,
                               ICustomerService customerService,
                               IDateTimeHelper dateTimeHelper,
                               IPriceFormatter priceFormatter,
                               IStoreService storeService,
                               ITaxService taxService,
                               IPriceCalculationService priceCalculationService,
                               IPermissionService permissionService,
                               ILocalizationService localizationService,
                               IProductAttributeFormatter productAttributeFormatter)
     : base(baseService, logger, webHelper)
 {
     this._customerService           = customerService;
     this._dateTimeHelper            = dateTimeHelper;
     this._priceFormatter            = priceFormatter;
     this._storeService              = storeService;
     this._taxService                = taxService;
     this._priceCalculationService   = priceCalculationService;
     this._permissionService         = permissionService;
     this._localizationService       = localizationService;
     this._productAttributeFormatter = productAttributeFormatter;
 }
 public GetPaymentMethodHandler(IRewardPointsService rewardPointsService,
                                IOrderTotalCalculationService orderTotalCalculationService,
                                ICurrencyService currencyService,
                                IPriceFormatter priceFormatter,
                                IPaymentService paymentService,
                                ILocalizationService localizationService,
                                ITaxService taxService,
                                IWebHelper webHelper,
                                RewardPointsSettings rewardPointsSettings,
                                PaymentSettings paymentSettings)
 {
     _rewardPointsService          = rewardPointsService;
     _orderTotalCalculationService = orderTotalCalculationService;
     _currencyService      = currencyService;
     _priceFormatter       = priceFormatter;
     _paymentService       = paymentService;
     _localizationService  = localizationService;
     _taxService           = taxService;
     _webHelper            = webHelper;
     _rewardPointsSettings = rewardPointsSettings;
     _paymentSettings      = paymentSettings;
 }
Exemplo n.º 49
0
 public ProductAttributeFormatter(IWorkContext workContext,
                                  IProductAttributeService productAttributeService,
                                  IProductAttributeParser productAttributeParser,
                                  ICurrencyService currencyService,
                                  ITranslationService translationService,
                                  ITaxService taxService,
                                  IPriceFormatter priceFormatter,
                                  IDownloadService downloadService,
                                  IPricingService priceCalculationService,
                                  IProductService productService)
 {
     _workContext             = workContext;
     _productAttributeService = productAttributeService;
     _productAttributeParser  = productAttributeParser;
     _currencyService         = currencyService;
     _translationService      = translationService;
     _taxService      = taxService;
     _priceFormatter  = priceFormatter;
     _downloadService = downloadService;
     _pricingService  = priceCalculationService;
     _productService  = productService;
 }
Exemplo n.º 50
0
        static void Main(string[] args)
        {
            IContainer container = new SimpleContainer();

            container.Register <IVatService, VatService>();
            container.Register <ITaxService, OrdinalTaxService>(Configuration.Lazy);
            container.Register <ILegislationService, LegislationService>();
            container.Register <Logger, Logger>();
            container.Register <IExporter, DataExporter>();

            ITaxService service = container.Resolve <ITaxService>();

            Console.WriteLine(service.PrepareReport());
            Console.WriteLine("Once more:");
            Console.WriteLine(service.PrepareReport());

            var exportResult = ((IExporter)service).Export();

            Console.WriteLine(exportResult);

            Console.ReadKey();
        }
 public EventConsumer(AvalaraTaxSettings avalaraTaxSettings,
                      ICheckoutAttributeService checkoutAttributeService,
                      ICustomerService customerService,
                      IGenericAttributeService genericAttributeService,
                      IHttpContextAccessor httpContextAccessor,
                      IPermissionService permissionService,
                      IProductService productService,
                      ISettingService settingService,
                      ITaxService taxService,
                      IWorkContext workContext)
 {
     this._avalaraTaxSettings       = avalaraTaxSettings;
     this._checkoutAttributeService = checkoutAttributeService;
     this._customerService          = customerService;
     this._genericAttributeService  = genericAttributeService;
     this._httpContextAccessor      = httpContextAccessor;
     this._permissionService        = permissionService;
     this._productService           = productService;
     this._settingService           = settingService;
     this._taxService  = taxService;
     this._workContext = workContext;
 }
Exemplo n.º 52
0
 public ProductAttributeFormatter(IWorkContext workContext,
                                  IProductAttributeService productAttributeService,
                                  IProductAttributeParser productAttributeParser,
                                  ICurrencyService currencyService,
                                  ILocalizationService localizationService,
                                  ITaxService taxService,
                                  IPriceFormatter priceFormatter,
                                  IDownloadService downloadService,
                                  IWebHelper webHelper,
                                  IPriceCalculationService priceCalculationService)
 {
     this._workContext             = workContext;
     this._productAttributeService = productAttributeService;
     this._productAttributeParser  = productAttributeParser;
     this._currencyService         = currencyService;
     this._localizationService     = localizationService;
     this._taxService              = taxService;
     this._priceFormatter          = priceFormatter;
     this._downloadService         = downloadService;
     this._webHelper               = webHelper;
     this._priceCalculationService = priceCalculationService;
 }
 public GBSProductAttributeFormatter(IWorkContext workContext,
                                     IProductAttributeService productAttributeService,
                                     IProductAttributeParser productAttributeParser,
                                     ICurrencyService currencyService,
                                     ILocalizationService localizationService,
                                     ITaxService taxService,
                                     IPriceFormatter priceFormatter,
                                     IDownloadService downloadService,
                                     IWebHelper webHelper,
                                     IPriceCalculationService priceCalculationService,
                                     ShoppingCartSettings shoppingCartSettings,
                                     IPluginFinder pluginFinder,
                                     IStoreContext storeContext)
     : base(workContext,
            productAttributeService,
            productAttributeParser,
            currencyService,
            localizationService,
            taxService,
            priceFormatter,
            downloadService,
            webHelper,
            priceCalculationService,
            shoppingCartSettings)
 {
     this._workContext             = workContext;
     this._productAttributeService = productAttributeService;
     this._productAttributeParser  = productAttributeParser;
     this._currencyService         = currencyService;
     this._localizationService     = localizationService;
     this._taxService              = taxService;
     this._priceFormatter          = priceFormatter;
     this._downloadService         = downloadService;
     this._webHelper               = webHelper;
     this._priceCalculationService = priceCalculationService;
     this._shoppingCartSettings    = shoppingCartSettings;
     this._pluginFinder            = pluginFinder;
     this._storeContext            = storeContext;
 }
        public static CartProduct Create(Cart cart, Product product, int quantity, ITaxService taxService)
        {
            if (cart == null)
            {
                throw new ArgumentNullException("cart");
            }

            if (product == null)
            {
                throw new ArgumentNullException("product");
            }

            return(new CartProduct()
            {
                Cart = cart,
                Product = product,
                Quantity = quantity,
                Active = true,
                Created = DateTime.Now,
                Tax = taxService.Calculate(cart.Customer, product)
            });
        }
Exemplo n.º 55
0
 public EntityUseCodeViewComponent(AvalaraTaxManager avalaraTaxManager,
                                   ICheckoutAttributeService checkoutAttributeService,
                                   ICustomerService customerService,
                                   IGenericAttributeService genericAttributeService,
                                   ILocalizationService localizationService,
                                   IPermissionService permissionService,
                                   IProductService productService,
                                   IStaticCacheManager cacheManager,
                                   ITaxService taxService,
                                   IWorkContext workContext)
 {
     this._avalaraTaxManager        = avalaraTaxManager;
     this._checkoutAttributeService = checkoutAttributeService;
     this._customerService          = customerService;
     this._genericAttributeService  = genericAttributeService;
     this._localizationService      = localizationService;
     this._permissionService        = permissionService;
     this._productService           = productService;
     this._cacheManager             = cacheManager;
     this._taxService  = taxService;
     this._workContext = workContext;
 }
Exemplo n.º 56
0
 public CheckoutAttributeFormatter(ICheckoutAttributeParser checkoutAttributeParser,
                                   ICheckoutAttributeService checkoutAttributeService,
                                   ICurrencyService currencyService,
                                   IDownloadService downloadService,
                                   IHtmlFormatter htmlFormatter,
                                   ILocalizationService localizationService,
                                   IPriceFormatter priceFormatter,
                                   ITaxService taxService,
                                   IWebHelper webHelper,
                                   IWorkContext workContext)
 {
     _checkoutAttributeParser  = checkoutAttributeParser;
     _checkoutAttributeService = checkoutAttributeService;
     _currencyService          = currencyService;
     _downloadService          = downloadService;
     _htmlFormatter            = htmlFormatter;
     _localizationService      = localizationService;
     _priceFormatter           = priceFormatter;
     _taxService  = taxService;
     _webHelper   = webHelper;
     _workContext = workContext;
 }
Exemplo n.º 57
0
 public GetMiniShoppingCartHandler(
     IShoppingCartService shoppingCartService,
     IOrderTotalCalculationService orderTotalCalculationService,
     ICurrencyService currencyService,
     IPriceFormatter priceFormatter,
     ITaxService taxService,
     ICacheManager cacheManager,
     ICheckoutAttributeService checkoutAttributeService,
     IProductService productService,
     IProductAttributeFormatter productAttributeFormatter,
     IProductAttributeParser productAttributeParser,
     ILocalizationService localizationService,
     IPriceCalculationService priceCalculationService,
     IPictureService pictureService,
     IMediator mediator,
     ShoppingCartSettings shoppingCartSettings,
     OrderSettings orderSettings,
     TaxSettings taxSettings,
     MediaSettings mediaSettings)
 {
     _shoppingCartService          = shoppingCartService;
     _orderTotalCalculationService = orderTotalCalculationService;
     _currencyService           = currencyService;
     _priceFormatter            = priceFormatter;
     _taxService                = taxService;
     _cacheManager              = cacheManager;
     _checkoutAttributeService  = checkoutAttributeService;
     _productService            = productService;
     _productAttributeFormatter = productAttributeFormatter;
     _productAttributeParser    = productAttributeParser;
     _localizationService       = localizationService;
     _priceCalculationService   = priceCalculationService;
     _pictureService            = pictureService;
     _mediator             = mediator;
     _shoppingCartSettings = shoppingCartSettings;
     _orderSettings        = orderSettings;
     _taxSettings          = taxSettings;
     _mediaSettings        = mediaSettings;
 }
Exemplo n.º 58
0
 public ProductAttributeFormatter(ICurrencyService currencyService,
                                  IDownloadService downloadService,
                                  ILocalizationService localizationService,
                                  IPriceCalculationService priceCalculationService,
                                  IPriceFormatter priceFormatter,
                                  IProductAttributeParser productAttributeParser,
                                  ITaxService taxService,
                                  IWebHelper webHelper,
                                  IWorkContext workContext,
                                  ShoppingCartSettings shoppingCartSettings)
 {
     _currencyService         = currencyService;
     _downloadService         = downloadService;
     _localizationService     = localizationService;
     _priceCalculationService = priceCalculationService;
     _priceFormatter          = priceFormatter;
     _productAttributeParser  = productAttributeParser;
     _taxService           = taxService;
     _webHelper            = webHelper;
     _workContext          = workContext;
     _shoppingCartSettings = shoppingCartSettings;
 }
Exemplo n.º 59
0
        /// <summary>
        /// Ctor
        /// </summary>
        /// <param name="shippingService">Shipping service</param>
        /// <param name="shippingByTotalService">ShippingByTotal service</param>
        /// <param name="shippingByTotalSettings">ShippingByTotal settings</param>
        /// <param name="objectContext">ShippingByTotal object context</param>
        /// <param name="priceCalculationService">PriceCalculation service</param>
        /// <param name="settingService">Settings service</param>
        /// <param name="logger">Logger</param>
        public ByTotalProvider(IShippingService shippingService,
                               IStoreContext storeContext,
                               IShippingByTotalService shippingByTotalService,
                               ShippingByTotalSettings shippingByTotalSettings,
                               IPriceCalculationService priceCalculationService,
                               ILogger logger,
                               ISettingService settingService,
                               ILocalizationService localizationService,
                               ITaxService taxService)
        {
            this._shippingService         = shippingService;
            this._storeContext            = storeContext;
            this._shippingByTotalService  = shippingByTotalService;
            this._shippingByTotalSettings = shippingByTotalSettings;
            this._priceCalculationService = priceCalculationService;
            this._logger              = logger;
            this._settingService      = settingService;
            this._localizationService = localizationService;
            _taxService = taxService;

            T = NullLocalizer.Instance;
        }
 public PayPalStandardPaymentProcessor(CurrencySettings currencySettings,
                                       IAddressService addressService,
                                       ICheckoutAttributeParser checkoutAttributeParser,
                                       ICountryService countryService,
                                       ICurrencyService currencyService,
                                       ICustomerService customerService,
                                       IGenericAttributeService genericAttributeService,
                                       IHttpContextAccessor httpContextAccessor,
                                       ILocalizationService localizationService,
                                       IOrderService orderService,
                                       IPaymentService paymentService,
                                       IProductService productService,
                                       ISettingService settingService,
                                       IStateProvinceService stateProvinceService,
                                       ITaxService taxService,
                                       IWebHelper webHelper,
                                       PayPalStandardHttpClient payPalStandardHttpClient,
                                       PayPalStandardPaymentSettings payPalStandardPaymentSettings)
 {
     _currencySettings        = currencySettings;
     _addressService          = addressService;
     _checkoutAttributeParser = checkoutAttributeParser;
     _countryService          = countryService;
     _currencyService         = currencyService;
     _customerService         = customerService;
     _genericAttributeService = genericAttributeService;
     _httpContextAccessor     = httpContextAccessor;
     _localizationService     = localizationService;
     _orderService            = orderService;
     _paymentService          = paymentService;
     _productService          = productService;
     _settingService          = settingService;
     _stateProvinceService    = stateProvinceService;
     _taxService = taxService;
     _webHelper  = webHelper;
     _payPalStandardHttpClient      = payPalStandardHttpClient;
     _payPalStandardPaymentSettings = payPalStandardPaymentSettings;
 }