Share via


UserManagerSpecificationTestBase<TUser> Class

Definition

Base class for tests that exercise basic identity functionality that all stores should support.

generic <typename TUser>
 where TUser : classpublic ref class UserManagerSpecificationTestBase abstract : Microsoft::AspNetCore::Identity::Test::UserManagerSpecificationTestBase<TUser, System::String ^>
public abstract class UserManagerSpecificationTestBase<TUser> : Microsoft.AspNetCore.Identity.Test.UserManagerSpecificationTestBase<TUser,string> where TUser : class
type UserManagerSpecificationTestBase<'User (requires 'User : null)> = class
    inherit UserManagerSpecificationTestBase<'User, string (requires 'User : null)>
Public MustInherit Class UserManagerSpecificationTestBase(Of TUser)
Inherits UserManagerSpecificationTestBase(Of TUser, String)

Type Parameters

TUser

The type of the user.

Inheritance
UserManagerSpecificationTestBase<TUser>

Constructors

UserManagerSpecificationTestBase<TUser>()

Fields

_errorDescriber

Error describer.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
NullValue

Null value.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)

Methods

AddDupeEmailAllowedByDefault()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
AddDupeEmailFailsWhenUniqueEmailRequired()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
AddDupeLoginFails()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
AddDupeUserNameFails()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
AddPasswordFailsIfAlreadyHave()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
AddUserStore(IServiceCollection, Object)

Adds an IUserStore to services for the test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
CanAddRemoveUserClaim()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
CanChainPasswordValidators()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
CanChainUserValidators()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
CanChangeEmail()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
CanChangeEmailWithDifferentTokenProvider()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
CanChangePassword()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
CanChangePhoneNumber()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
CanConfirmEmailWithStaticToken()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
CanCreateUserAddLogin()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
CanCreateUserAddRemoveLogin()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
CanCreateUserLoginAndAddPassword()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
CanCreateUserNoPassword()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
CanDeleteUser()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
CanEnableLockoutManuallyAndLockout()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
CanFindByEmail()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
CanFindById()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
CanFindUsersViaUserQuerable()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
CanGenerateAndVerifyUserTokenWithStaticTokenProvider()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
CanGetSetUpdateAndRemoveUserToken()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
CanGetUsersWithClaims()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
CanGetValidTwoFactor()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
CanRedeemRecoveryCodeOnlyOnce()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
CanRemovePassword()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
CanReplaceUserClaim()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
CanResetPasswordWithStaticTokenProvider()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
CanUpdatePasswordUsingHasher()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
CanUpdateUserName()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
CanVerifyPhoneNumber()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
ChangeEmailFailsWithEmail()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
ChangeEmailFailsWithWrongToken()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
ChangeEmailTokensFailsAfterEmailChanged()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
ChangePasswordFallsIfPasswordWrong()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
ChangePhoneNumberFailsWithWrongPhoneNumber()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
ChangePhoneNumberFailsWithWrongToken()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
ChangePhoneNumberTokenIsInt()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
ChangePhoneNumberWithCustomProvider()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
CheckSetEmailValidatesUser()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
CheckSetUserNameValidatesUser()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
ConfirmEmailFalseByDefaultTest()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
ConfirmEmailWithStaticTokenFailsWithWrongToken()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
ConfirmTokenFailsAfterPasswordChange()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
CreateManager(Object, IServiceCollection, Action<IServiceCollection>)

Creates the user manager used for tests.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
CreateTestContext()

Creates the context object for a test, typically a DbContext.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
CreateTestUser(String, String, String, Boolean, Nullable<DateTimeOffset>, Boolean)

Create a new test user instance.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
CreateUpdatesSecurityStamp()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
CreateUserWillSetCreateDateOnlyIfSupported()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
EmailFactorFailsAfterSecurityStampChangeTest()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
EnableTwoFactorChangesSecurityStamp()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
GenerateTwoFactorWithUnknownFactorProviderWillThrow()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
GenerateUsers(String, Int32)

Generate count users with a name prefix.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
GetValidTwoFactorTestEmptyWithNoProviders()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
LockoutEndToUtcNowMinus1SecInUserShouldNotBeLockedOut()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
LockoutEndToUtcNowPlus5ShouldBeLockedOut()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
LockoutEndToUtcNowSubOneSecondWithManagerShouldNotBeLockedOut()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
LockoutFailsIfNotEnabled()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
NullableDateTimeOperationTest()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
PasswordValidatorCanBlockAddPassword()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
PasswordValidatorCanBlockChangePassword()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
PasswordValidatorCanBlockCreateUser()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
PasswordValidatorCanBlockResetPasswordWithStaticTokenProvider()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
PhoneFactorFailsAfterSecurityStampChangeTest()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
RecoveryCodesInvalidAfterReplace()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
RemoveClaimOnlyAffectsUser()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
ReplaceUserClaimOnlyAffectsUser()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
ResetAccessCountPreventsLockout()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
ResetAuthenticatorKeyUpdatesSecurityStamp()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
ResetPasswordWithStaticTokenProviderFailsWithWrongToken()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
SetPhoneNumberTest()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
SetupBuilder(IServiceCollection, Object)

Configure the service collection used for tests.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
SetupIdentityServices(IServiceCollection, Object)

Configure the service collection used for tests.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
SetUserNameUpdatesSecurityStamp()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
SetUserPasswordHash(TUser, String)

Set the user's password hash.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
ShouldSkipDbTests()

If true, tests that require a database will be skipped.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
SingleFailureLockout()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
TwoFailureLockout()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
UpdateSecurityStampActuallyChanges()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
UserLockedOutWithDateTimeLocalKindNowPlus30()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
UserNameEqualsPredicate(String)

Query used to do name equality checks.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
UserNameStartsWithPredicate(String)

Query used to do user name prefix matching.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
UserNotLockedOutWithNullDateTimeAndIsSetToNullDate()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
UserValidatorBlocksInvalidEmailsWhenRequiresUniqueEmail(String)

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
UserValidatorBlocksShortEmailsWhenRequiresUniqueEmail(String)

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
UserValidatorCanBlockCreate()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
UserValidatorCanBlockUpdate()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
VerifyTokenFromWrongTokenProviderFails()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)
VerifyWithWrongSmsTokenFails()

Test.

(Inherited from UserManagerSpecificationTestBase<TUser,TKey>)

Applies to