示例#1
0
 private void InitializeFakeObjects()
 {
     _resourceOwnerAuthenticateHelperStub = new Mock <IResourceOwnerAuthenticateHelper>();
     _authenticateHelperFake        = new Mock <IAuthenticateHelper>();
     _localUserAuthenticationAction = new LocalOpenIdUserAuthenticationAction(
         _resourceOwnerAuthenticateHelperStub.Object,
         _authenticateHelperFake.Object);
 }
 public AuthenticateActions(
     IAuthenticateResourceOwnerOpenIdAction authenticateResourceOwnerOpenIdAction,
     ILocalOpenIdUserAuthenticationAction localOpenIdUserAuthenticationAction,
     IGenerateAndSendCodeAction generateAndSendCodeAction,
     IValidateConfirmationCodeAction validateConfirmationCodeAction,
     IRemoveConfirmationCodeAction removeConfirmationCodeAction)
 {
     _authenticateResourceOwnerOpenIdAction = authenticateResourceOwnerOpenIdAction;
     _localOpenIdUserAuthenticationAction   = localOpenIdUserAuthenticationAction;
     _generateAndSendCodeAction             = generateAndSendCodeAction;
     _validateConfirmationCodeAction        = validateConfirmationCodeAction;
     _removeConfirmationCodeAction          = removeConfirmationCodeAction;
 }