public MailerAsyncProxy( INotificationMailRepository notificationMailRepository, INotificationEmailDescriber notificationEmailDescriber) { Require.NotNull(notificationMailRepository, nameof(notificationMailRepository)); Require.NotNull(notificationEmailDescriber, nameof(notificationEmailDescriber)); _notificationMailRepository = notificationMailRepository; _notificationEmailDescriber = notificationEmailDescriber; }
public Mailer(MailerSettings mailerSettings, INotificationEmailDescriber notificationEmailDescriber, IUserRepository usersRepository) { Require.NotNull(mailerSettings, nameof(mailerSettings)); Require.NotNull(notificationEmailDescriber, nameof(notificationEmailDescriber)); Require.NotNull(usersRepository, nameof(usersRepository)); _mailerSettings = mailerSettings; _notificationEmailDescriber = notificationEmailDescriber; _usersRepository = usersRepository; }