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