Example #1
0
        public void SetUp()
        {
            _candidateServiceProvider                  = new Mock <ICandidateServiceProvider>();
            _activationViewModelServerValidator        = new ActivationViewModelServerValidator();
            _forgottenPasswordViewModelServerValidator = new ForgottenPasswordViewModelServerValidator();
            _passwordResetViewModelServerValidator     = new PasswordResetViewModelServerValidator();
            _registerViewModelServerValidator          = new RegisterViewModelServerValidator();

            _registerMediator = new RegisterMediator(_candidateServiceProvider.Object, _registerViewModelServerValidator, _activationViewModelServerValidator, _forgottenPasswordViewModelServerValidator, _passwordResetViewModelServerValidator);
        }
Example #2
0
 public RegisterMediator(ICandidateServiceProvider candidateServiceProvider,
                         RegisterViewModelServerValidator registerViewModelServerValidator,
                         ActivationViewModelServerValidator activationViewModelServerValidator,
                         ForgottenPasswordViewModelServerValidator forgottenPasswordViewModelServerValidator,
                         PasswordResetViewModelServerValidator passwordResetViewModelServerValidator)
 {
     _candidateServiceProvider                  = candidateServiceProvider;
     _registerViewModelServerValidator          = registerViewModelServerValidator;
     _activationViewModelServerValidator        = activationViewModelServerValidator;
     _forgottenPasswordViewModelServerValidator = forgottenPasswordViewModelServerValidator;
     _passwordResetViewModelServerValidator     = passwordResetViewModelServerValidator;
 }
Example #3
0
 public LoginMediator(IUserDataProvider userDataProvider,
                      ICandidateServiceProvider candidateServiceProvider,
                      IConfigurationService configurationService,
                      LoginViewModelServerValidator loginViewModelServerValidator,
                      AccountUnlockViewModelServerValidator accountUnlockViewModelServerValidator,
                      ResendAccountUnlockCodeViewModelServerValidator resendAccountUnlockCodeViewModelServerValidator,
                      IAuthenticationTicketService authenticationTicketService,
                      ForgottenPasswordViewModelServerValidator forgottenPasswordViewModelServerValidator,
                      PasswordResetViewModelServerValidator passwordResetViewModelServerValidator,
                      ForgottenEmailViewModelServerValidator forgottenEmailViewModelServerValidator,
                      ILogService logService)
 {
     _userDataProvider                                = userDataProvider;
     _candidateServiceProvider                        = candidateServiceProvider;
     _configurationService                            = configurationService;
     _loginViewModelServerValidator                   = loginViewModelServerValidator;
     _accountUnlockViewModelServerValidator           = accountUnlockViewModelServerValidator;
     _resendAccountUnlockCodeViewModelServerValidator = resendAccountUnlockCodeViewModelServerValidator;
     _authenticationTicketService                     = authenticationTicketService;
     _forgottenPasswordViewModelServerValidator       = forgottenPasswordViewModelServerValidator;
     _passwordResetViewModelServerValidator           = passwordResetViewModelServerValidator;
     _forgottenEmailViewModelServerValidator          = forgottenEmailViewModelServerValidator;
     _logService = logService;
 }