public ConsentActions(
     IDisplayConsentAction displayConsentAction,
     IConfirmConsentAction confirmConsentAction)
 {
     _displayConsentAction = displayConsentAction;
     _confirmConsentAction = confirmConsentAction;
 }
示例#2
0
 private void InitializeFakeObjects()
 {
     _consentRepositoryFake             = new Mock <IConsentRepository>();
     _clientRepositoryFake              = new Mock <IClientRepository>();
     _scopeRepositoryFake               = new Mock <IScopeRepository>();
     _resourceOwnerRepositoryFake       = new Mock <IResourceOwnerRepository>();
     _parameterParserHelperFake         = new Mock <IParameterParserHelper>();
     _actionResultFactoryFake           = new Mock <IActionResultFactory>();
     _generateAuthorizationResponseFake = new Mock <IGenerateAuthorizationResponse>();
     _consentHelperFake = new Mock <IConsentHelper>();
     _openIdEventSource = new Mock <IOpenIdEventSource>();
     _authenticateResourceOwnerServiceStub = new Mock <IAuthenticateResourceOwnerService>();
     _confirmConsentAction = new ConfirmConsentAction(
         _consentRepositoryFake.Object,
         _clientRepositoryFake.Object,
         _scopeRepositoryFake.Object,
         _resourceOwnerRepositoryFake.Object,
         _parameterParserHelperFake.Object,
         _actionResultFactoryFake.Object,
         _generateAuthorizationResponseFake.Object,
         _consentHelperFake.Object,
         _openIdEventSource.Object);
 }