17 references to RoleExistsAsync
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (3)
SqlStoreTestBase.cs (3)
163
Assert.False(await roleMgr.
RoleExistsAsync
(roleName));
172
Assert.False(await roleMgr.
RoleExistsAsync
(roleName));
187
Assert.False(await roleMgr.
RoleExistsAsync
(roleName));
Microsoft.AspNetCore.Identity.Specification.Tests (11)
IdentitySpecificationTestBase.cs (11)
133
Assert.False(await manager.
RoleExistsAsync
(roleName));
135
Assert.True(await manager.
RoleExistsAsync
(roleName));
220
Assert.False(await manager.
RoleExistsAsync
(roleName));
222
Assert.True(await manager.
RoleExistsAsync
(roleName));
224
Assert.False(await manager.
RoleExistsAsync
(roleName));
291
Assert.False(await manager.
RoleExistsAsync
(roleName));
306
Assert.False(await manager.
RoleExistsAsync
(roleName));
308
Assert.True(await manager.
RoleExistsAsync
(roleName));
311
Assert.False(await manager.
RoleExistsAsync
("update"));
348
Assert.False(await manager.
RoleExistsAsync
(roleName));
350
Assert.True(await manager.
RoleExistsAsync
(roleName));
Microsoft.AspNetCore.Identity.Test (3)
RoleManagerTest.cs (3)
105
var result = await manager.
RoleExistsAsync
(role.Name);
130
await Assert.ThrowsAsync<ArgumentNullException>("roleName", async () => await manager.
RoleExistsAsync
(null));
140
await Assert.ThrowsAsync<ObjectDisposedException>(() => manager.
RoleExistsAsync
(null));