4 instantiations of IdentityRole
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (4)
UserStoreTest.cs (4)
302var role = new IdentityRole(Guid.NewGuid().ToString()); 333var role = new IdentityRole(Guid.NewGuid().ToString()); 363var role = new IdentityRole(Guid.NewGuid().ToString()); 405return new IdentityRole(roleName);
41 references to IdentityRole
Identity.DefaultUI.WebSite (1)
StartupBase.cs (1)
43.AddRoles<IdentityRole>()
Identity.ExternalClaims (1)
Startup.cs (1)
39services.AddIdentity<ApplicationUser, IdentityRole>()
IdentitySample.DefaultUI (1)
Startup.cs (1)
46.AddRoles<IdentityRole>()
IdentitySample.Mvc (1)
Startup.cs (1)
38.AddRoles<IdentityRole>()
Microsoft.AspNetCore.Identity.EntityFrameworkCore (3)
IdentityDbContext.cs (2)
11public class IdentityDbContext : IdentityDbContext<IdentityUser, IdentityRole, string> 29public class IdentityDbContext<TUser> : IdentityDbContext<TUser, IdentityRole, string> where TUser : IdentityUser
UserStore.cs (1)
30public class UserStore<TUser> : UserStore<TUser, IdentityRole, DbContext, string>
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (32)
CustomSchemaTest.cs (1)
26.AddIdentity<IdentityUser, IdentityRole>(o =>
DefaultPocoTest.cs (1)
27.AddIdentity<IdentityUser, IdentityRole>()
EmptySchemaTest.cs (1)
26.AddIdentity<IdentityUser, IdentityRole>(o =>
MaxKeyLengthSchemaTest.cs (2)
27.AddIdentity<IdentityUser, IdentityRole>(o => o.Stores.MaxLengthForKeys = 128) 41public class VerstappenDbContext : IdentityDbContext<IdentityUser, IdentityRole, string>
UserStoreEncryptPersonalDataTest.cs (4)
12public class ProtectedUserStoreTest : SqlStoreTestBase<IdentityUser, IdentityRole, string> 20services.AddIdentity<IdentityUser, IdentityRole>(options => 183services.AddIdentity<CustomUser, IdentityRole>(options => 280services.AddIdentity<CustomUser, IdentityRole>(options =>
UserStoreTest.cs (15)
13public class UserStoreTest : IdentitySpecificationTestBase<IdentityUser, IdentityRole>, IClassFixture<ScratchDatabaseFixture> 55services.AddSingleton<IUserStore<IdentityUser>>(new UserStore<IdentityUser, IdentityRole, IdentityDbContext>((IdentityDbContext)context)); 60services.AddSingleton<IRoleStore<IdentityRole>>(new RoleStore<IdentityRole, IdentityDbContext>((IdentityDbContext)context)); 302var role = new IdentityRole(Guid.NewGuid().ToString()); 315var role1 = await manager1.FindByIdAsync(role.Id); 316var role2 = await manager2.FindByIdAsync(role.Id); 333var role = new IdentityRole(Guid.NewGuid().ToString()); 346var role2 = await manager2.FindByIdAsync(role.Id); 363var role = new IdentityRole(Guid.NewGuid().ToString()); 376var role1 = await manager1.FindByIdAsync(role.Id); 377var role2 = await manager2.FindByIdAsync(role.Id); 402protected override IdentityRole CreateTestRole(string roleNamePrefix = "", bool useRoleNamePrefixAsRoleName = false) 415protected override Expression<Func<IdentityRole, bool>> RoleNameEqualsPredicate(string roleName) => r => r.Name == roleName; 418protected override Expression<Func<IdentityRole, bool>> RoleNameStartsWithPredicate(string roleName) => r => r.Name.StartsWith(roleName);
UserStoreWithGenericsTest.cs (1)
82var builder = services.AddIdentity<object, IdentityRole>();
VersionOneSchemaTest.cs (1)
26.AddIdentity<IdentityUser, IdentityRole>(o =>
VersionTestDbContext.cs (5)
11public class VersionOneDbContext : IdentityDbContext<IdentityUser, IdentityRole, string> 19public class VersionTwoDbContext : IdentityDbContext<IdentityUser, IdentityRole, string> 27public class EmptyDbContext : IdentityDbContext<IdentityUser, IdentityRole, string> 46builder.Ignore<IdentityRole>(); 65public class CustomVersionDbContext : IdentityDbContext<IdentityUser, IdentityRole, string>
VersionTwoSchemaTest.cs (1)
26.AddIdentity<IdentityUser, IdentityRole>(o =>
Microsoft.Extensions.Identity.Stores (2)
IdentityRole.cs (2)
14/// Initializes a new instance of <see cref="IdentityRole"/>. 25/// Initializes a new instance of <see cref="IdentityRole"/>.