10 writes to Name
Microsoft.AspNetCore.Identity.Test (10)
RoleManagerTest.cs (5)
16
var role = new PocoRole {
Name
= "Foo" };
36
var role = new PocoRole {
Name
= "Foo" };
64
var role = new PocoRole {
Name
= "Foo" };
81
var role = new PocoRole {
Name
= "Foo" };
100
var role = new PocoRole {
Name
= "Foo" };
RoleValidatorTest.cs (1)
29
var user = new PocoRole {
Name
= input };
src\Identity\test\Shared\PocoModel\PocoRole.cs (2)
25
Name
= roleName;
46
Name
= roleName;
UserClaimsPrincipalFactoryTest.cs (2)
68
var admin = new PocoRole() {
Name
= "Admin" };
69
var local = new PocoRole() {
Name
= "Local" };
8 references to Name
Microsoft.AspNetCore.Identity.Test (8)
RoleManagerTest.cs (8)
18
store.Setup(s => s.GetRoleNameAsync(role, CancellationToken.None)).Returns(Task.FromResult(role.
Name
)).Verifiable();
19
store.Setup(s => s.SetNormalizedRoleNameAsync(role, normalizer.NormalizeName(role.
Name
), CancellationToken.None)).Returns(Task.FromResult(0)).Verifiable();
38
store.Setup(s => s.GetRoleNameAsync(role, CancellationToken.None)).Returns(Task.FromResult(role.
Name
)).Verifiable();
39
store.Setup(s => s.SetNormalizedRoleNameAsync(role, normalizer.NormalizeName(role.
Name
), CancellationToken.None)).Returns(Task.FromResult(0)).Verifiable();
69
var result = await manager.FindByNameAsync(role.
Name
);
82
store.Setup(s => s.FindByNameAsync(role.
Name
, CancellationToken.None)).Returns(Task.FromResult(role)).Verifiable();
87
var result = await manager.FindByNameAsync(role.
Name
);
105
var result = await manager.RoleExistsAsync(role.
Name
);