Esempio n. 1
0
 public AuthenticateActions(
     IAuthenticateResourceOwnerOpenIdAction authenticateResourceOwnerOpenIdAction,
     ILocalOpenIdUserAuthenticationAction localOpenIdUserAuthenticationAction,
     ILocalUserAuthenticationAction localUserAuthenticationAction,
     IGenerateAndSendCodeAction generateAndSendCodeAction,
     IValidateConfirmationCodeAction validateConfirmationCodeAction,
     IRemoveConfirmationCodeAction removeConfirmationCodeAction)
 {
     _authenticateResourceOwnerOpenIdAction = authenticateResourceOwnerOpenIdAction;
     _localOpenIdUserAuthenticationAction   = localOpenIdUserAuthenticationAction;
     _localUserAuthenticationAction         = localUserAuthenticationAction;
     _generateAndSendCodeAction             = generateAndSendCodeAction;
     _validateConfirmationCodeAction        = validateConfirmationCodeAction;
     _removeConfirmationCodeAction          = removeConfirmationCodeAction;
 }
 private void InitializeFakeObjects()
 {
     _authenticateResourceOwnerServiceStub = new Mock <IAuthenticateResourceOwnerService>();
     _localUserAuthenticationAction        = new LocalUserAuthenticationAction(_authenticateResourceOwnerServiceStub.Object);
 }