public AdminDataProvider(IUnitOfWork unitOfWork, IEmailService emailService, IMessageTemplateDataProvider messageTemplateDataProvider, ILogger logger)
 {
     this.unitOfWork = unitOfWork;
     _emailService   = emailService;
     _messageTemplateDataProvider = messageTemplateDataProvider;
     _logger = logger;
 }
Exemplo n.º 2
0
 public UserDetailDataProvider(IUnitOfWork unitOfWork, IEmailService emailService, IMessageTemplateDataProvider messageTemplateDataProvider, ILogger logger)
 {
     _unitOfWork   = unitOfWork;
     _emailService = emailService;
     _messageTemplateDataProvider = messageTemplateDataProvider;
     _logger = logger;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ForgotPasswordDataProvider" /> class.
 /// </summary>
 /// <param name="unitOfWork">The unit of work.</param>
 /// <param name="emailService">The email service.</param>
 /// <param name="messageTemplateDataProvider">The email template data provider.</param>
 /// <param name="adminDataProvider">The admin data provider.</param>
 /// <param name="securityQuestionDataProvider">The security question data provider.</param>
 public ForgotPasswordDataProvider(
     IUnitOfWork unitOfWork,
     IEmailService emailService,
     IMessageTemplateDataProvider messageTemplateDataProvider,
     IAdminDataProvider adminDataProvider,
     ISecurityQuestionDataProvider securityQuestionDataProvider,
     ILogger logger)
 {
     this.unitOfWork   = unitOfWork;
     this.emailService = emailService;
     this.messageTemplateDataProvider  = messageTemplateDataProvider;
     this.adminDataProvider            = adminDataProvider;
     this.securityQuestionDataProvider = securityQuestionDataProvider;
     this.fromEmail       = ConfigurationManager.AppSettings["FromEmail"];
     this.fromDisplayName = ConfigurationManager.AppSettings["FromDisplayName"];
     this.logger          = logger;
 }