public ResourceOwnerActions(
     IGetResourceOwnerAction getResourceOwnerAction,
     IGetResourceOwnersAction getResourceOwnersAction,
     IUpdateResourceOwnerClaimsAction updateResourceOwnerClaimsAction,
     IUpdateResourceOwnerPasswordAction updateResourceOwnerPasswordAction,
     IDeleteResourceOwnerAction deleteResourceOwnerAction,
     IAddUserOperation addUserOperation,
     ISearchResourceOwnersAction searchResourceOwnersAction,
     IUpdateResourceOwnerClaimsParameterValidator updateResourceOwnerClaimsParameterValidator,
     IUpdateResourceOwnerPasswordParameterValidator updateResourceOwnerPasswordParameterValidator,
     IAddUserParameterValidator addUserParameterValidator,
     IManagerEventSource managerEventSource)
 {
     _getResourceOwnerAction = getResourceOwnerAction;
     _getResourceOwnersAction = getResourceOwnersAction;
     _updateResourceOwnerClaimsAction = updateResourceOwnerClaimsAction;
     _updateResourceOwnerPasswordAction = updateResourceOwnerPasswordAction;
     _deleteResourceOwnerAction = deleteResourceOwnerAction;
     _addUserOperation = addUserOperation;
     _searchResourceOwnersAction = searchResourceOwnersAction;
     _updateResourceOwnerClaimsParameterValidator = updateResourceOwnerClaimsParameterValidator;
     _updateResourceOwnerPasswordParameterValidator = updateResourceOwnerPasswordParameterValidator;
     _addUserParameterValidator = addUserParameterValidator;
     _managerEventSource = managerEventSource;
 }
Esempio n. 2
0
 private void InitializeFakeObjects()
 {
     _resourceOwnerRepositoryStub          = new Mock <IResourceOwnerRepository>();
     _claimsRepositoryStub                 = new Mock <IClaimRepository>();
     _authenticateResourceOwnerServiceStub = new Mock <IAuthenticateResourceOwnerService>();
     _addResourceOwnerAction               = new AddUserOperation(
         _resourceOwnerRepositoryStub.Object,
         _claimsRepositoryStub.Object,
         _authenticateResourceOwnerServiceStub.Object);
 }
Esempio n. 3
0
 public UserActions(
     IGetConsentsOperation getConsentsOperation,
     IRemoveConsentOperation removeConsentOperation,
     IGetUserOperation getUserOperation,
     IUpdateUserOperation updateUserOperation,
     IAddUserOperation addUserOperation)
 {
     _getConsentsOperation   = getConsentsOperation;
     _removeConsentOperation = removeConsentOperation;
     _getUserOperation       = getUserOperation;
     _updateUserOperation    = updateUserOperation;
     _addUserOperation       = addUserOperation;
 }
Esempio n. 4
0
 public UserActions(
     IGetConsentsOperation getConsentsOperation,
     IRemoveConsentOperation removeConsentOperation,
     IGetUserOperation getUserOperation,
     IUpdateUserCredentialsOperation updateUserCredentialsOperation,
     IUpdateUserClaimsOperation updateUserClaimsOperation,
     IAddUserOperation addUserOperation,
     IUpdateUserTwoFactorAuthenticatorOperation updateUserTwoFactorAuthenticatorOperation)
 {
     _getConsentsOperation                      = getConsentsOperation;
     _removeConsentOperation                    = removeConsentOperation;
     _getUserOperation                          = getUserOperation;
     _updateUserCredentialsOperation            = updateUserCredentialsOperation;
     _updateUserClaimsOperation                 = updateUserClaimsOperation;
     _addUserOperation                          = addUserOperation;
     _updateUserTwoFactorAuthenticatorOperation = updateUserTwoFactorAuthenticatorOperation;
 }
 private void InitializeFakeObjects()
 {
     _resourceOwnerRepositoryStub = new Mock <IResourceOwnerRepository>();
     _claimsRepositoryStub        = new Mock <IClaimRepository>();
     _linkProfileActionStub       = new Mock <ILinkProfileAction>();
     _openidEventSourceStub       = new Mock <IOpenIdEventSource>();
     _subjectBuilderStub          = new Mock <ISubjectBuilder>();
     _accountFilterStub           = new Mock <IAccountFilter>();
     _userClaimsEnricherStub      = new Mock <IUserClaimsEnricher>();
     _addResourceOwnerAction      = new AddUserOperation(
         _resourceOwnerRepositoryStub.Object,
         _claimsRepositoryStub.Object,
         _linkProfileActionStub.Object,
         _accountFilterStub.Object,
         _openidEventSourceStub.Object,
         new List <IUserClaimsEnricher> {
         _userClaimsEnricherStub.Object
     },
         _subjectBuilderStub.Object);
 }