17 references to RoleExistsAsync
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (3)
SqlStoreTestBase.cs (3)
164Assert.False(await roleMgr.RoleExistsAsync(roleName)); 173Assert.False(await roleMgr.RoleExistsAsync(roleName)); 188Assert.False(await roleMgr.RoleExistsAsync(roleName));
Microsoft.AspNetCore.Identity.Specification.Tests (11)
IdentitySpecificationTestBase.cs (11)
134Assert.False(await manager.RoleExistsAsync(roleName)); 136Assert.True(await manager.RoleExistsAsync(roleName)); 221Assert.False(await manager.RoleExistsAsync(roleName)); 223Assert.True(await manager.RoleExistsAsync(roleName)); 225Assert.False(await manager.RoleExistsAsync(roleName)); 292Assert.False(await manager.RoleExistsAsync(roleName)); 307Assert.False(await manager.RoleExistsAsync(roleName)); 309Assert.True(await manager.RoleExistsAsync(roleName)); 312Assert.False(await manager.RoleExistsAsync("update")); 349Assert.False(await manager.RoleExistsAsync(roleName)); 351Assert.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));