Beispiel #1
0
 public CampaignController(ICampaignService campaignService,
                           IDateTimeHelper dateTimeHelper, IEmailAccountService emailAccountService,
                           EmailAccountSettings emailAccountSettings,
                           INewsLetterSubscriptionService newsLetterSubscriptionService,
                           ILocalizationService localizationService, IMessageTokenProvider messageTokenProvider,
                           IPermissionService permissionService,
                           ILanguageService languageService,
                           ILocalizedEntityService localizationEntityService,
                           IWorkContext workContext,
                           ICategoryService categoryService,
                           CampaignSettings campaignSettings,
                           ISettingService settingService,
                           INewsletterDatesService newsletterDatesService)
 {
     this._campaignService               = campaignService;
     this._dateTimeHelper                = dateTimeHelper;
     this._emailAccountService           = emailAccountService;
     this._emailAccountSettings          = emailAccountSettings;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._localizationService           = localizationService;
     this._messageTokenProvider          = messageTokenProvider;
     this._permissionService             = permissionService;
     this._languageService               = languageService;
     this._localizationEntityService     = localizationEntityService;
     this._workContext            = workContext;
     this._categoryService        = categoryService;
     this._campaignSettings       = campaignSettings;
     this._settingService         = settingService;
     this._newsletterDatesService = newsletterDatesService;
 }
Beispiel #2
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="campaignRepository">Campaign repository</param>
 /// <param name="emailSender">Email sender</param>
 /// <param name="messageTokenProvider">Message token provider</param>
 /// <param name="tokenizer">Tokenizer</param>
 /// <param name="queuedEmailService">Queued email service</param>
 /// <param name="customerService">Customer service</param>
 /// <param name="eventPublisher">Event published</param>
 public CampaignService(IRepository <Campaign> campaignRepository,
                        IEmailSender emailSender, IMessageTokenProvider messageTokenProvider,
                        ITokenizer tokenizer, IQueuedEmailService queuedEmailService,
                        ICustomerService customerService, IEventPublisher eventPublisher,
                        INewsletterDatesService newsletterDatesService)
 {
     this._campaignRepository     = campaignRepository;
     this._emailSender            = emailSender;
     this._messageTokenProvider   = messageTokenProvider;
     this._tokenizer              = tokenizer;
     this._queuedEmailService     = queuedEmailService;
     this._customerService        = customerService;
     this._eventPublisher         = eventPublisher;
     this._newsletterDatesService = newsletterDatesService;
 }