public RestorePasswordService(IUOWFactory uowf, IAuthKeyService emailKeyService, IAuthKeyService phoneKeyService, IRegValidator reg, IPassHasher pHasher)
 {
     DataFactory  = uowf;
     emailService = emailKeyService;
     phoneService = phoneKeyService;
     regValidator = reg;
     passHasher   = pHasher;
 }
 public ProfileService(
     IUOWFactory uowf,
     IRegValidator regValidator,
     IConfirmService emailCS,
     IConfirmService phoneCS,
     IPassHasher passHasher,
     IClaimService claimService,
     IGetUserDTO getUserDTO)
 {
     DataFactory    = uowf;
     RegValidator   = regValidator;
     EmailService   = emailCS;
     PhoneService   = phoneCS;
     PassHasher     = passHasher;
     ClaimService   = claimService;
     GetUserService = getUserDTO;
 }
Exemple #3
0
 public UserAuthService(IUOWFactory iuowf,
                        IAuthKeyService phoneAuthService,
                        IAuthKeyService emailAuthService,
                        IPassHasher passHasher,
                        IRegValidator regValidator,
                        IClaimService claimService,
                        IKeyGenerator keyGenerator,
                        IGetUserDTO getUserDTO)
 {
     DataFactory      = iuowf;
     EmailAuthService = emailAuthService;
     PhoneAuthService = phoneAuthService;
     PassHasher       = passHasher;
     RegValidator     = regValidator;
     ClaimService     = claimService;
     KeyGenerator     = keyGenerator;
     GetUserService   = getUserDTO;
 }
Exemple #4
0
 public void SetUp()
 {
     _passHasher = new PassHasher();
 }
Exemple #5
0
 public UserService(IUnitOfWork unitOfWork, IPassHasher hasher, IMapper mapper)
 {
     _unitOfWork = unitOfWork;
     _hasher     = hasher;
     _mapper     = mapper;
 }
Exemple #6
0
 public AuthService(IUnitOfWork unitOfWork, IPassHasher hasher, IRoleRepository roleRepository, JwtManager jwtManager)
 {
     _unitOfWork = unitOfWork;
     _hasher     = hasher;
     _jwtManager = jwtManager;
 }