public EmailDispatchWidgetController(IEmailDispatchWidgetEmailMessageService service, IProvideEmailConfiguration configuration) { if (service == null) throw new ArgumentNullException("service"); this.service = service; this.configuration = configuration; }
public EmailTemplateWidgetController(IEmailTemplateWidgetTemplateService service, IProvideEmailConfiguration configuration) { if (service == null) throw new ArgumentNullException("service"); this.service = service; this.configuration = configuration; }
public DispatchMonthlyController(IDispatchMonthlyDashboardService service, IProvideEmailConfiguration userConfiguration) { if (service == null) throw new ArgumentNullException("service"); if (userConfiguration == null) throw new ArgumentNullException("userConfiguration"); this.service = service; this.userConfiguration = userConfiguration; }
public EmailTemplateManagementController(IEmailTemplateManagementTemplateService service, IProvideEmailConfiguration configuration, Func<CreateTemplatePreCommand> createTemplatePreCommandAccessor, Func<DeletedTemplatePreCommand> deletedTemplatePreCommandAccessor, Func<RenameTemplatePreCommand> renameTemplatePreCommandAccessor, Func<UpdateTemplateFromEmailAddressPreCommand> updateTemplateFromEmailAddressPreCommandAccessor, Func<UpdateTemplateEmailContentsPreCommand> updateTemplateEmailContentsPreCommandAccessor) { if (service == null) throw new ArgumentNullException("service"); this.service = service; this.configuration = configuration; this.createTemplatePreCommandAccessor = createTemplatePreCommandAccessor; this.deletedTemplatePreCommandAccessor = deletedTemplatePreCommandAccessor; this.renameTemplatePreCommandAccessor = renameTemplatePreCommandAccessor; this.updateTemplateFromEmailAddressPreCommandAccessor = updateTemplateFromEmailAddressPreCommandAccessor; this.updateTemplateEmailContentsPreCommandAccessor = updateTemplateEmailContentsPreCommandAccessor; }