15 references to FindByNameAsync
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (1)
SqlStoreTestBase.cs (1)
171Assert.Null(await roleMgr.FindByNameAsync(roleName));
Microsoft.AspNetCore.Identity.Specification.Tests (5)
IdentitySpecificationTestBase.cs (5)
290Assert.Null(await manager.FindByNameAsync(roleName)); 293Assert.Equal(role, await manager.FindByNameAsync(roleName)); 312Assert.Equal(role, await manager.FindByNameAsync("Changed")); 543Assert.NotNull(await roleMgr.FindByNameAsync(roleName)); 557Assert.Equal(roleName, await roleMgr.GetRoleNameAsync(await roleMgr.FindByNameAsync(roleName)));
Microsoft.AspNetCore.Identity.Test (6)
RoleManagerTest.cs (4)
69var result = await manager.FindByNameAsync(role.Name); 87var result = await manager.FindByNameAsync(role.Name); 129await Assert.ThrowsAsync<ArgumentNullException>("roleName", async () => await manager.FindByNameAsync(null)); 139await Assert.ThrowsAsync<ObjectDisposedException>(() => manager.FindByNameAsync(null));
UserClaimsPrincipalFactoryTest.cs (2)
74roleManager.Setup(m => m.FindByNameAsync("Admin")).ReturnsAsync(admin); 75roleManager.Setup(m => m.FindByNameAsync("Local")).ReturnsAsync(local);
Microsoft.Extensions.Identity.Core (3)
RoleManager.cs (1)
224return await FindByNameAsync(roleName).ConfigureAwait(false) != null;
RoleValidator.cs (1)
57var owner = await manager.FindByNameAsync(roleName).ConfigureAwait(false);
UserClaimsPrincipalFactory.cs (1)
147var role = await RoleManager.FindByNameAsync(roleName).ConfigureAwait(false);