1 write to Id
Microsoft.AspNetCore.Identity.InMemory.Test (1)
src\Identity\test\Shared\PocoModel\PocoRole.cs (1)
16
Id
= Guid.NewGuid().ToString();
11 references to Id
Microsoft.AspNetCore.Identity.InMemory.Test (11)
InMemoryStore.cs (11)
23
user.Roles.Add(new PocoUserRole { RoleId = roleEntity.
Id
, UserId = user.Id });
32
var roleEntity = user.Roles.SingleOrDefault(ur => ur.RoleId == roleObject.
Id
);
53
bool result = roleObject != null && user.Roles.Any(ur => ur.RoleId == roleObject.
Id
);
67
return Task.FromResult<IList<TUser>>(Users.Where(u => (u.Roles.Where(x => x.RoleId == role.
Id
).Any())).Select(x => x).ToList());
74
_roles[role.
Id
] = role;
80
if (role == null || !_roles.ContainsKey(role.
Id
))
84
_roles.Remove(role.
Id
);
90
return Task.FromResult(role.
Id
);
106
_roles[role.
Id
] = role;
134
role.Claims.Add(new PocoRoleClaim<string> { ClaimType = claim.Type, ClaimValue = claim.Value, RoleId = role.
Id
});
142
ur => ur.RoleId == role.
Id
&& ur.ClaimType == claim.Type && ur.ClaimValue == claim.Value);