Ejemplo n.º 1
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>();
     _updateUserCredentialsOperation = new UpdateUserCredentialsOperation(
         _resourceOwnerRepositoryStub.Object);
 }