43 references to IsLockedOutAsync
Microsoft.AspNetCore.Identity (2)
SignInManager.cs (2)
414
if (await UserManager.
IsLockedOutAsync
(user))
898
return UserManager.SupportsUserLockout && await UserManager.
IsLockedOutAsync
(user);
Microsoft.AspNetCore.Identity.Specification.Tests (18)
UserManagerSpecificationTests.cs (18)
1157
Assert.False(await mgr.
IsLockedOutAsync
(user));
1159
Assert.True(await mgr.
IsLockedOutAsync
(user));
1179
Assert.False(await mgr.
IsLockedOutAsync
(user));
1181
Assert.False(await mgr.
IsLockedOutAsync
(user));
1185
Assert.True(await mgr.
IsLockedOutAsync
(user));
1204
Assert.False(await mgr.
IsLockedOutAsync
(user));
1206
Assert.False(await mgr.
IsLockedOutAsync
(user));
1211
Assert.False(await mgr.
IsLockedOutAsync
(user));
1214
Assert.False(await mgr.
IsLockedOutAsync
(user));
1235
Assert.False(await mgr.
IsLockedOutAsync
(user));
1237
Assert.False(await mgr.
IsLockedOutAsync
(user));
1241
Assert.True(await mgr.
IsLockedOutAsync
(user));
1259
Assert.False(await mgr.
IsLockedOutAsync
(user));
1278
Assert.False(await mgr.
IsLockedOutAsync
(user));
1292
Assert.False(await mgr.
IsLockedOutAsync
(user));
1307
Assert.False(await mgr.
IsLockedOutAsync
(user));
1322
Assert.True(await mgr.
IsLockedOutAsync
(user));
1338
Assert.True(await mgr.
IsLockedOutAsync
(user));
Microsoft.AspNetCore.Identity.Test (23)
SignInManagerTest.cs (21)
37
manager.Setup(m => m.
IsLockedOutAsync
(user)).ReturnsAsync(true).Verifiable();
67
manager.Setup(m => m.
IsLockedOutAsync
(user)).ReturnsAsync(true).Verifiable();
124
manager.Setup(m => m.
IsLockedOutAsync
(user)).ReturnsAsync(false).Verifiable();
147
manager.Setup(m => m.
IsLockedOutAsync
(user)).ReturnsAsync(false).Verifiable();
171
manager.Setup(m => m.
IsLockedOutAsync
(user)).ReturnsAsync(false).Verifiable();
199
manager.Setup(m => m.
IsLockedOutAsync
(user)).ReturnsAsync(false).Verifiable();
243
manager.Setup(m => m.
IsLockedOutAsync
(user)).ReturnsAsync(false).Verifiable();
271
manager.Setup(m => m.
IsLockedOutAsync
(user)).ReturnsAsync(false).Verifiable();
444
manager.Setup(m => m.
IsLockedOutAsync
(user)).Returns(() => Task.FromResult(lockedout));
572
manager.Setup(m => m.
IsLockedOutAsync
(user)).ReturnsAsync(false).Verifiable();
664
manager.Setup(m => m.
IsLockedOutAsync
(user)).ReturnsAsync(false).Verifiable();
727
manager.Setup(m => m.
IsLockedOutAsync
(user)).Returns(() => Task.FromResult(lockedout));
785
manager.Setup(m => m.
IsLockedOutAsync
(user)).ReturnsAsync(false).Verifiable();
838
manager.Setup(m => m.
IsLockedOutAsync
(user)).ReturnsAsync(false).Verifiable();
887
manager.Setup(m => m.
IsLockedOutAsync
(user)).Returns(() => Task.FromResult(lockedout));
914
manager.Setup(m => m.
IsLockedOutAsync
(user)).Returns(() => Task.FromResult(lockedout));
1142
manager.Setup(m => m.
IsLockedOutAsync
(user)).ReturnsAsync(false).Verifiable();
1165
manager.Setup(m => m.
IsLockedOutAsync
(user)).ReturnsAsync(false).Verifiable();
1192
manager.Setup(m => m.
IsLockedOutAsync
(user)).ReturnsAsync(false).Verifiable();
1230
manager.Setup(m => m.
IsLockedOutAsync
(user)).ReturnsAsync(() => isLockedOutCallCount++ > 0).Verifiable();
1258
manager.Setup(m => m.
IsLockedOutAsync
(user)).ReturnsAsync(() => isLockedOutCallCount++ > 0).Verifiable();
UserManagerTest.cs (2)
919
await Assert.ThrowsAsync<NotSupportedException>(async () => await manager.
IsLockedOutAsync
(null));
1143
async () => await manager.
IsLockedOutAsync
(null));