Exemple #1
0
 private void InitializeFakeObjects()
 {
     _resourceOwnerRepositoryStub = new Mock <IResourceOwnerRepository>();
     _claimRepositoryStub         = new Mock <IClaimRepository>();
     _updateUserClaimsOperation   = new UpdateUserClaimsOperation(_resourceOwnerRepositoryStub.Object,
                                                                  _claimRepositoryStub.Object);
 }
Exemple #2
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;
 }