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