示例#1
0
        public RepositoryUserIdProvider(
            IUserEmailAddressProvider emailAddressProvider, IAuthRepository repository)
        {
            _emailAddressProvider = emailAddressProvider ??
                                    throw new ArgumentException(nameof(emailAddressProvider));

            _repository = repository ?? throw new ArgumentException(nameof(repository));
        }
 public EmailNotificationSendingJob(
     INotificationInfoRepository notificationInfoRepository,
     IUserEmailAddressProvider userEmailAddressProvider,
     INotificationRepository notificationRepository,
     IEmailSender emailSender,
     IClock clock)
 {
     _notificationInfoRepository = notificationInfoRepository;
     _userEmailAddressProvider   = userEmailAddressProvider;
     _notificationRepository     = notificationRepository;
     _emailSender = emailSender;
     _clock       = clock;
 }