public EmailBulkService(ILogger <EmailBulkService> logger,
                         IDateTimeProvider dateTimeProvider,
                         IUserContextProvider userContextProvider,
                         IEmailTemplateRepository emailTemplateRepository,
                         IJobRepository jobRepository,
                         EmailReminderService emailReminderService,
                         EmailService emailService,
                         UserService userService)
     : base(logger, dateTimeProvider, userContextProvider)
 {
     _emailTemplateRepository = emailTemplateRepository
                                ?? throw new ArgumentNullException(nameof(emailTemplateRepository));
     _jobRepository = jobRepository
                      ?? throw new ArgumentNullException(nameof(jobRepository));
     _emailReminderService = emailReminderService
                             ?? throw new ArgumentNullException(nameof(emailReminderService));
     _emailService = emailService ?? throw new ArgumentNullException(nameof(emailService));
     _userService  = userService
                     ?? throw new ArgumentNullException(nameof(userService));
 }
Esempio n. 2
0
 public EmailBulkService(ILogger <EmailBulkService> logger,
                         IDateTimeProvider dateTimeProvider,
                         IUserContextProvider userContextProvider,
                         EmailReminderService emailReminderService,
                         EmailService emailService,
                         IDirectEmailHistoryRepository directEmailHistoryRepository,
                         IJobRepository jobRepository,
                         UserService userService,
                         SiteLookupService siteLookupService)
     : base(logger, dateTimeProvider, userContextProvider)
 {
     _directEmailHistoryRepository = directEmailHistoryRepository
                                     ?? throw new ArgumentNullException(nameof(directEmailHistoryRepository));
     _emailReminderService = emailReminderService
                             ?? throw new ArgumentNullException(nameof(emailReminderService));
     _emailService  = emailService ?? throw new ArgumentNullException(nameof(emailService));
     _jobRepository = jobRepository
                      ?? throw new ArgumentNullException(nameof(jobRepository));
     _userService       = userService ?? throw new ArgumentNullException(nameof(userService));
     _siteLookupService = siteLookupService
                          ?? throw new ArgumentNullException(nameof(siteLookupService));
 }