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