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