7 references to RedeemTwoFactorRecoveryCodeAsync
Microsoft.AspNetCore.Identity.Specification.Tests (5)
UserManagerSpecificationTests.cs (5)
1759
IdentityResultAssert.IsSuccess(await manager.
RedeemTwoFactorRecoveryCodeAsync
(user, code));
1760
IdentityResultAssert.IsFailure(await manager.
RedeemTwoFactorRecoveryCodeAsync
(user, code));
1766
IdentityResultAssert.IsFailure(await manager.
RedeemTwoFactorRecoveryCodeAsync
(user, code));
1789
IdentityResultAssert.IsFailure(await manager.
RedeemTwoFactorRecoveryCodeAsync
(user, code));
1794
IdentityResultAssert.IsSuccess(await manager.
RedeemTwoFactorRecoveryCodeAsync
(user, code));
Microsoft.AspNetCore.Identity.Test (2)
SignInManagerTest.cs (1)
520
manager.Setup(m => m.
RedeemTwoFactorRecoveryCodeAsync
(user, bypassCode)).ReturnsAsync(IdentityResult.Success).Verifiable();
UserManagerTest.cs (1)
964
await VerifyException<NotSupportedException>(async () => await manager.
RedeemTwoFactorRecoveryCodeAsync
(null, null), error);