/// <summary> /// Mailer Constructor /// </summary> /// <param name="emailStorageAccount"></param> /// <param name="emailBlobContainer"></param> /// <param name="emailQueueName"></param> /// <param name="sendGridAPIKey"></param> public Mailer(MailTemplateHelper mailTemplateHelper, IOptions <SendGridMailerOptions> sendGridMailerOptions, BlobPersister blobPersister, QueuePersister queuePersister) { _mailTemplateHelper = mailTemplateHelper; _blobPersister = blobPersister; _queuePersister = queuePersister; _sendGridMailerOptions = sendGridMailerOptions.Value; }
public TestPublic() { _mailTemplateHelper = ActivatorUtilities.CreateInstance <MailTemplateHelper>(ServiceProvider); _mailTemplateRepository = ActivatorUtilities.CreateInstance <Data.MailTemplateRepository>(ServiceProvider); _mailTemplateListRepository = ActivatorUtilities.CreateInstance <Data.MailTemplateListRepository>(ServiceProvider); _mailer = ActivatorUtilities.CreateInstance <Mailer>(ServiceProvider); }