16 references to ResetAccessFailedCountAsync
Microsoft.AspNetCore.Identity (2)
SignInManager.cs (2)
940var result = await UserManager.ResetAccessFailedCountAsync(user) ?? IdentityResult.Success; 959return await UserManager.ResetAccessFailedCountAsync(user) ?? IdentityResult.Success;
Microsoft.AspNetCore.Identity.Specification.Tests (1)
UserManagerSpecificationTests.cs (1)
1209IdentityResultAssert.IsSuccess(await mgr.ResetAccessFailedCountAsync(user));
Microsoft.AspNetCore.Identity.Test (13)
SignInManagerTest.cs (10)
173manager.Setup(m => m.ResetAccessFailedCountAsync(user)).ReturnsAsync(IdentityResult.Success).Verifiable(); 222manager.Setup(m => m.ResetAccessFailedCountAsync(user)).ReturnsAsync(IdentityResult.Success).Verifiable(); 245manager.Setup(m => m.ResetAccessFailedCountAsync(user)).ReturnsAsync(IdentityResult.Success).Verifiable(); 363manager.Setup(m => m.ResetAccessFailedCountAsync(user)).ReturnsAsync(IdentityResult.Success).Verifiable(); 523manager.Setup(m => m.ResetAccessFailedCountAsync(user)).ReturnsAsync(IdentityResult.Success).Verifiable(); 665manager.Setup(m => m.ResetAccessFailedCountAsync(user)).ReturnsAsync(IdentityResult.Success).Verifiable(); 1144manager.Setup(m => m.ResetAccessFailedCountAsync(user)).ReturnsAsync(IdentityResult.Failed()).Verifiable(); 1167manager.Setup(m => m.ResetAccessFailedCountAsync(user)).ReturnsAsync((IdentityResult)null).Verifiable(); 1195manager.Setup(m => m.ResetAccessFailedCountAsync(user)).ReturnsAsync(IdentityResult.Failed()).Verifiable(); 1341return UserManager.ResetAccessFailedCountAsync(user);
UserManagerTest.cs (3)
920await Assert.ThrowsAsync<NotSupportedException>(async () => await manager.ResetAccessFailedCountAsync(null)); 1012IdentityResultAssert.IsSuccess(await manager.ResetAccessFailedCountAsync(user)); 1131async () => await manager.ResetAccessFailedCountAsync(null));