1 instantiation of MyIdentityRole
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (1)
UserStoreWithGenericsTest.cs (1)
60
return new
MyIdentityRole
(roleName);
10 references to MyIdentityRole
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (10)
UserStoreWithGenericsTest.cs (10)
13
public class UserStoreWithGenericsTest : IdentitySpecificationTestBase<IdentityUserWithGenerics,
MyIdentityRole
, string>, IClassFixture<ScratchDatabaseFixture>
41
services.AddSingleton<IRoleStore<
MyIdentityRole
>>(new RoleStoreWithGenerics((ContextWithGenerics)context, "TestContext"));
57
protected override
MyIdentityRole
CreateTestRole(string roleNamePrefix = "", bool useRoleNamePrefixAsRoleName = false)
70
protected override Expression<Func<
MyIdentityRole
, bool>> RoleNameEqualsPredicate(string roleName) => r => r.Name == roleName;
75
protected override Expression<Func<
MyIdentityRole
, bool>> RoleNameStartsWithPredicate(string roleName) => r => r.Name.StartsWith(roleName);
199
public class UserStoreWithGenerics : UserStore<IdentityUserWithGenerics,
MyIdentityRole
, ContextWithGenerics, string, IdentityUserClaimWithIssuer, IdentityUserRoleWithDate, IdentityUserLoginWithContext, IdentityUserTokenWithStuff, IdentityRoleClaimWithIssuer>
208
protected override IdentityUserRoleWithDate CreateUserRole(IdentityUserWithGenerics user,
MyIdentityRole
role)
248
public class RoleStoreWithGenerics : RoleStore<
MyIdentityRole
, ContextWithGenerics, string, IdentityUserRoleWithDate, IdentityRoleClaimWithIssuer>
256
protected override IdentityRoleClaimWithIssuer CreateRoleClaim(
MyIdentityRole
role, Claim claim)
324
public class ContextWithGenerics : IdentityDbContext<IdentityUserWithGenerics,
MyIdentityRole
, string, IdentityUserClaimWithIssuer, IdentityUserRoleWithDate, IdentityUserLoginWithContext, IdentityRoleClaimWithIssuer, IdentityUserTokenWithStuff>