private void InitializeFakeObjects() { _authenticateInstructionGeneratorStub = new Mock <IAuthenticateInstructionGenerator>(); _authenticateClientStub = new Mock <IAuthenticateClient>(); _clientValidatorStub = new Mock <IClientValidator>(); _grantedTokenGeneratorHelperStub = new Mock <IGrantedTokenGeneratorHelper>(); _scopeValidatorStub = new Mock <IScopeValidator>(); _simpleIdentityServerEventSourceStub = new Mock <ISimpleIdentityServerEventSource>(); _clientCredentialsGrantTypeParameterValidatorStub = new Mock <IClientCredentialsGrantTypeParameterValidator>(); _clientHelperStub = new Mock <IClientHelper>(); _jwtGeneratorStub = new Mock <IJwtGenerator>(); _tokenStoreStub = new Mock <ITokenStore>(); _grantedTokenHelperStub = new Mock <IGrantedTokenHelper>(); _getTokenByClientCredentialsGrantTypeAction = new GetTokenByClientCredentialsGrantTypeAction( _authenticateInstructionGeneratorStub.Object, _authenticateClientStub.Object, _clientValidatorStub.Object, _grantedTokenGeneratorHelperStub.Object, _scopeValidatorStub.Object, _simpleIdentityServerEventSourceStub.Object, _clientCredentialsGrantTypeParameterValidatorStub.Object, _clientHelperStub.Object, _jwtGeneratorStub.Object, _tokenStoreStub.Object, _grantedTokenHelperStub.Object); }
public TokenActions( IGetTokenByResourceOwnerCredentialsGrantTypeAction getTokenByResourceOwnerCredentialsGrantType, IGetTokenByAuthorizationCodeGrantTypeAction getTokenByAuthorizationCodeGrantTypeAction, IResourceOwnerGrantTypeParameterValidator resourceOwnerGrantTypeParameterValidator, IAuthorizationCodeGrantTypeParameterTokenEdpValidator authorizationCodeGrantTypeParameterTokenEdpValidator, IRefreshTokenGrantTypeParameterValidator refreshTokenGrantTypeParameterValidator, IGetTokenByRefreshTokenGrantTypeAction getTokenByRefreshTokenGrantTypeAction, IGetTokenByClientCredentialsGrantTypeAction getTokenByClientCredentialsGrantTypeAction, IClientCredentialsGrantTypeParameterValidator clientCredentialsGrantTypeParameterValidator, ISimpleIdentityServerEventSource simpleIdentityServerEventSource, IRevokeTokenAction revokeTokenAction, IEventPublisher eventPublisher, IPayloadSerializer payloadSerializer) { _getTokenByResourceOwnerCredentialsGrantType = getTokenByResourceOwnerCredentialsGrantType; _getTokenByAuthorizationCodeGrantTypeAction = getTokenByAuthorizationCodeGrantTypeAction; _resourceOwnerGrantTypeParameterValidator = resourceOwnerGrantTypeParameterValidator; _authorizationCodeGrantTypeParameterTokenEdpValidator = authorizationCodeGrantTypeParameterTokenEdpValidator; _refreshTokenGrantTypeParameterValidator = refreshTokenGrantTypeParameterValidator; _getTokenByRefreshTokenGrantTypeAction = getTokenByRefreshTokenGrantTypeAction; _simpleIdentityServerEventSource = simpleIdentityServerEventSource; _getTokenByClientCredentialsGrantTypeAction = getTokenByClientCredentialsGrantTypeAction; _clientCredentialsGrantTypeParameterValidator = clientCredentialsGrantTypeParameterValidator; _revokeTokenAction = revokeTokenAction; _eventPublisher = eventPublisher; _payloadSerializer = payloadSerializer; }