Beispiel #1
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;
        }
Beispiel #2
0
 public NewsletterController(INewsletterSubscriptionService newsletterSubscriptionService, IEmailService emailService,
                             IStringLocalizer <NewsletterController> localizer,
                             IMapper mapper, IAppConfigManager configurationManager)
 {
     _emailService = emailService;
     _newsletterSubscriptionService = newsletterSubscriptionService;
     _localizer            = localizer;
     _mapper               = mapper;
     _configurationManager = configurationManager;
 }
 public ManageController(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     IEmailSender emailSender,
     ISmsSender smsSender,
     INewsletterSubscriptionService newsletterSubscriptionService,
     ILoggerFactory loggerFactory,
     IStringLocalizer <ManageController> localizer,
     ApplicationDbContext context)
 {
     _userManager   = userManager;
     _signInManager = signInManager;
     _emailSender   = emailSender;
     _smsSender     = smsSender;
     _newsletterSubscriptionService = newsletterSubscriptionService;
     _logger    = loggerFactory.CreateLogger <ManageController>();
     _localizer = localizer;
     _context   = context;
 }
Beispiel #4
0
 public SubscriptionController(INewsletterSubscriptionService subscriptionService)
 {
     mSubscriptionService = subscriptionService;
 }
 public NewsletterSubscriptionController(INewsletterSubscriptionService newsletterSubscriptionService)
 {
     this.newsletterSubscriptionService = newsletterSubscriptionService;
 }
 public NewsletterSubscriptionController(INewsletterSubscriptionService newsletterSubscriptionService)
 {
     this.newsletterSubscriptionService = newsletterSubscriptionService;
 }