Beispiel #1
0
 public UserService()
 {
     _emailValidatorService = Dependency.GetInstance<IEmailValidatorService>();
     _passwordValidatorService = Dependency.GetInstance<IPasswordValidatorService>();
     _userRepository = Dependency.GetInstance<IUserRepository>();
     _hasherService = Dependency.GetInstance<IHasherService>();
 }
Beispiel #2
0
 public AuthenticationService(
     IAppUserStore <AppUser, int> appUserStore, IPasswordService passwordService,
     IAppSettings appSettings,
     IEmailValidatorService emailValidatorService,
     ISanitizerService sanitizerService
     )
 {
     this._appUserStore          = appUserStore;
     this._passwordService       = passwordService;
     this._appSettings           = appSettings;
     this._emailValidatorService = emailValidatorService;
     this._sanitizerService      = sanitizerService;
 }
 public ForgotPasswordController(
     IEmailValidatorService emailValidatorService,
     IEmailSenderService emailSenderService,
     IForgotPasswordEmail <User> forgotPasswordEmail,
     IUserRepository <User, UserFilter, UserSpecification> userRepository,
     IUserPasswordRepository <UserDTO> userPasswordRepository,
     IStringLocalizer <ForgotPasswordViewModel> localizer)
 {
     _emailValidatorService  = emailValidatorService;
     _emailSenderService     = emailSenderService;
     _forgotPasswordEmail    = forgotPasswordEmail;
     _userRepository         = userRepository;
     _userPasswordRepository = userPasswordRepository;
     _localizer = localizer;
 }
 public SetPasswordController(
     IEmailValidatorService emailValidatorService,
     IPasswordValidatorService passwordValidatorService,
     IPasswordHasherService <User> passwordHasherService,
     IUserRepository <User, UserFilter, UserSpecification> userRepository,
     IUserPasswordRepository <UserDTO> userPasswordRepository,
     IStringLocalizer <SetPasswordViewModel> localizer)
 {
     _emailValidatorService    = emailValidatorService;
     _passwordValidatorService = passwordValidatorService;
     _passwordHasherService    = passwordHasherService;
     _userRepository           = userRepository;
     _userPasswordRepository   = userPasswordRepository;
     _localizer = localizer;
 }
 public UserController(
     IPasswordValidatorService passwordValidatorService,
     IPasswordHasherService <TUser> passwordHasherService,
     IEmailValidatorService emailValidatorService,
     IUserRepository <TUser, UserFilter, UserSpecification> userRepository,
     IUserRoleRepository <UserRole> userRoleRepository,
     IMediator mediator,
     IStringLocalizer <TUser> localizer)
 {
     _passwordValidatorService = passwordValidatorService;
     _passwordHasherService    = passwordHasherService;
     _emailValidatorService    = emailValidatorService;
     _userRepository           = userRepository;
     _userRoleRepository       = userRoleRepository;
     _mediator  = mediator;
     _localizer = localizer;
 }
 public EmailRouterBase(Email email, IEmailValidatorService emailValidatorService)
 {
     _email = email;
     _emailValidatorService = emailValidatorService;
 }
        public EmailValidatorServiceTests()
        {
            _emailValidatorService = Dependency.GetInstance<IEmailValidatorService>();

        }