public MailerAsyncProxy(
            INotificationMailRepository notificationMailRepository,
            INotificationEmailDescriber notificationEmailDescriber)
        {
            Require.NotNull(notificationMailRepository, nameof(notificationMailRepository));
            Require.NotNull(notificationEmailDescriber, nameof(notificationEmailDescriber));

            _notificationMailRepository = notificationMailRepository;
            _notificationEmailDescriber = notificationEmailDescriber;
        }
Example #2
0
        public MailerAsyncProxy(
            INotificationMailRepository notificationMailRepository,
            INotificationEmailDescriber notificationEmailDescriber)
        {
            Require.NotNull(notificationMailRepository, nameof(notificationMailRepository));
            Require.NotNull(notificationEmailDescriber, nameof(notificationEmailDescriber));

            _notificationMailRepository = notificationMailRepository;
            _notificationEmailDescriber = notificationEmailDescriber;
        }
Example #3
0
        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;
        }
Example #4
0
        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;
        }