17 references to AccessFailedAsync
Microsoft.AspNetCore.Identity (1)
SignInManager.cs (1)
407
var incrementLockoutResult = await UserManager.
AccessFailedAsync
(user) ?? IdentityResult.Success;
Microsoft.AspNetCore.Identity.Specification.Tests (7)
UserManagerSpecificationTests.cs (7)
1158
IdentityResultAssert.IsSuccess(await mgr.
AccessFailedAsync
(user));
1180
IdentityResultAssert.IsSuccess(await mgr.
AccessFailedAsync
(user));
1184
IdentityResultAssert.IsSuccess(await mgr.
AccessFailedAsync
(user));
1205
IdentityResultAssert.IsSuccess(await mgr.
AccessFailedAsync
(user));
1213
IdentityResultAssert.IsSuccess(await mgr.
AccessFailedAsync
(user));
1236
IdentityResultAssert.IsSuccess(await mgr.
AccessFailedAsync
(user));
1240
IdentityResultAssert.IsSuccess(await mgr.
AccessFailedAsync
(user));
Microsoft.AspNetCore.Identity.Test (9)
SignInManagerTest.cs (7)
405
manager.Setup(m => m.
AccessFailedAsync
(user)).Throws(new Exception("Should not get called"));
437
manager.Setup(m => m.
AccessFailedAsync
(user)).Returns(() =>
721
manager.Setup(m => m.
AccessFailedAsync
(user)).Returns(() =>
881
manager.Setup(m => m.
AccessFailedAsync
(user)).Returns(() =>
908
manager.Setup(m => m.
AccessFailedAsync
(user)).Returns(() =>
1232
manager.Setup(m => m.
AccessFailedAsync
(user)).ReturnsAsync(accessFailedResult).Verifiable();
1261
manager.Setup(m => m.
AccessFailedAsync
(user)).ReturnsAsync(accessFailedResult).Verifiable();
UserManagerTest.cs (2)
918
await Assert.ThrowsAsync<NotSupportedException>(async () => await manager.
AccessFailedAsync
(null));
1129
async () => await manager.
AccessFailedAsync
(null));