Example #1
0
 public AccountController()
 {
     _userService             = new UserService();
     _securityQuestionService = new SecurityQuestionService();
     _roleService             = new RoleService();
     logService = new LogService();
 }
Example #2
0
 public UserService(UserManager <ApplicationUser> userManager, ISecurityQuestionService securityQuestionService,
                    ILogger <UserService> logger)
 {
     _userManager             = userManager;
     _securityQuestionService = securityQuestionService;
     _logger = logger;
 }
Example #3
0
 public SecurityController(
     IUserService userService,
     ISecurityQuestionService securityQuestionService,
     ISecurityAnswerService securityAnswerService,
     ILogger logger)
     : base(logger)
 {
     this._userService             = userService;
     this._securityQuestionService = securityQuestionService;
     this._securityAnswerService   = securityAnswerService;
 }
 public PasswordController(
     IUserService userService,
     IPasswordHistoryService passwordHistoryService,
     ISecurityQuestionService securityQuestionService,
     ISecurityAnswerService securityAnswerService,
     ILogger logger)
     : base(logger)
 {
     this._userService             = userService;
     this._passwordHistoryService  = passwordHistoryService;
     this._securityQuestionService = securityQuestionService;
     this._securityAnswerService   = securityAnswerService;
 }
Example #5
0
 public ResetPasswordController(ISecurityQuestionService securityQuestionService, IUserService userService)
 {
     _securityQuestionService = securityQuestionService;
     _userService             = userService;
 }
 public void SetUp()
 {
     _securityQuestionRepository = new Mock <ISecurityQuestionRepository>();
     _securityQuestionService    = new SecurityQuestionService(_securityQuestionRepository.Object);
 }
Example #7
0
 public MyController()
 {
     userService             = new UserService();
     securityQuestionService = new SecurityQuestionService();
 }
Example #8
0
 public SecurityQuestionController()
 {
     _securityQuestionService = new SecurityQuestionService();
 }
 public RegistrationService(IUserService userService, ISecurityQuestionService securityQuestionService, ILogger <RegistrationService> logger)
 {
     _userService             = userService;
     _securityQuestionService = securityQuestionService;
     _logger = logger;
 }
Example #10
0
 public SecurityQuestionsController(ISecurityQuestionService securityQuestionService)
 {
     _securityQuestionService = securityQuestionService;
 }