Пример #1
0
 public EmailNotificationMessageSender(
     INotificationMessageSenderFactory notificationMessageSenderProviderFactory
     , IOptions <EmailSendingOptions> emailSendingOptions)
 {
     _notificationMessageSenderProviderFactory = notificationMessageSenderProviderFactory;
     _emailSendingOptions = emailSendingOptions.Value;
 }
Пример #2
0
 private NotificationSender GetNotificationSender()
 {
     _notificationMessageSenderFactory = new NotificationMessageSenderFactory(new List <INotificationMessageSender>()
     {
         _messageSender
     });
     return(new NotificationSender(_templateRender, _messageServiceMock.Object, _notificationMessageSenderFactory, _backgroundJobClient.Object));
 }
Пример #3
0
 public NotificationSender(INotificationTemplateRenderer notificationTemplateRender
                           , INotificationMessageService notificationMessageService
                           , INotificationMessageSenderFactory notificationMessageAccessor
                           , IBackgroundJobClient jobClient)
 {
     _notificationTemplateRender       = notificationTemplateRender;
     _notificationMessageService       = notificationMessageService;
     _notificationMessageSenderFactory = notificationMessageAccessor;
     _jobClient = jobClient;
 }