public TransactionalMailHelper(SendGridService sendGridService, IMailConfigStorage mailConfigStorage, WorkspaceAppService workspaceAppService) { _fromAddress = new EmailAddress("Team at Project Unicorn", "*****@*****.**"); _testEmailIndicator = AppSettings.Env == "Staging" || AppSettings.Env == "Development" ? "[TEST EMAIL] " : ""; _sendGridService = sendGridService; _mailConfig = new MailConfig(mailConfigStorage); _userStorage = new UserEntity(); _workspaceAppService = workspaceAppService; }
public TransactionalMailNotifier(ILogger <TransactionalMailNotifier> logger, IMessageQueue messageQueue, IMailConfigStorage mailConfigStorage, Settings settings, WorkspaceAppService workspaceAppService) { _logger = logger; _messageQueue = messageQueue; _transactionalMailHelper = new TransactionalMailHelper(new SendGridService(), mailConfigStorage, workspaceAppService); _mailValidation = new MailValidation(new Storage <SendTrackingEntity>(settings.TableStorageConnectionString, settings.MailTrackingTableName)); _pubSlackAppQueueName = AppSettings.PubSlackAppQueueName; }