12 references to _roles
Microsoft.AspNetCore.Identity.InMemory.Test (12)
InMemoryStore.cs (12)
20
var roleEntity =
_roles
.Values.SingleOrDefault(r => r.NormalizedName == role);
31
var roleObject =
_roles
.Values.SingleOrDefault(r => r.NormalizedName == role);
45
roles.Add(
_roles
[r].Name);
52
var roleObject =
_roles
.Values.SingleOrDefault(r => r.NormalizedName == role);
62
var role =
_roles
.Values.Where(x => x.NormalizedName.Equals(roleName)).SingleOrDefault();
74
_roles
[role.Id] = role;
80
if (role == null || !
_roles
.ContainsKey(role.Id))
84
_roles
.Remove(role.Id);
106
_roles
[role.Id] = role;
112
if (
_roles
.ContainsKey(roleId))
114
return Task.FromResult(
_roles
[roleId]);
163
get { return
_roles
.Values.AsQueryable(); }