20 instantiations of IdentityDbContext
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (20)
UserStoreTest.cs (20)
66var store = new UserStore(new IdentityDbContext(new DbContextOptionsBuilder<IdentityDbContext>().Options)); 100var store = new UserStore(new IdentityDbContext(new DbContextOptionsBuilder<IdentityDbContext>().Options)); 213using (var db = new IdentityDbContext(options)) 220using (var db = new IdentityDbContext(options)) 221using (var db2 = new IdentityDbContext(options)) 244using (var db = new IdentityDbContext(options)) 251using (var db = new IdentityDbContext(options)) 252using (var db2 = new IdentityDbContext(options)) 273using (var db = new IdentityDbContext(options)) 280using (var db = new IdentityDbContext(options)) 281using (var db2 = new IdentityDbContext(options)) 303using (var db = new IdentityDbContext(options)) 310using (var db = new IdentityDbContext(options)) 311using (var db2 = new IdentityDbContext(options)) 334using (var db = new IdentityDbContext(options)) 341using (var db = new IdentityDbContext(options)) 342using (var db2 = new IdentityDbContext(options)) 364using (var db = new IdentityDbContext(options)) 371using (var db = new IdentityDbContext(options)) 372using (var db2 = new IdentityDbContext(options))
68 references to IdentityDbContext
Identity.DefaultUI.WebSite (7)
Data\Migrations\00000000000000_CreateIdentitySchema.Designer.cs (1)
13[DbContext(typeof(IdentityDbContext))]
Data\Migrations\20180217170630_UpdateIdentitySchema.Designer.cs (1)
14[DbContext(typeof(IdentityDbContext))]
Data\Migrations\IdentityDbContextModelSnapshot.cs (1)
13[DbContext(typeof(IdentityDbContext))]
NoIdentityStartup.cs (1)
41StartupBase<IdentityUser, IdentityDbContext>.DisableFilePolling(env);
PocoUserStartup.cs (1)
10public class PocoUserStartup : StartupBase<PocoUser, IdentityDbContext>
Startup.cs (1)
9public class Startup : StartupBase<IdentityUser, IdentityDbContext>
StartupWithoutEndpointRouting.cs (1)
9public class StartupWithoutEndpointRouting : StartupBase<IdentityUser, IdentityDbContext>
Microsoft.AspNetCore.Identity.EntityFrameworkCore (4)
IdentityDbContext.cs (4)
14/// Initializes a new instance of <see cref="IdentityDbContext"/>. 20/// Initializes a new instance of the <see cref="IdentityDbContext" /> class. 32/// Initializes a new instance of <see cref="IdentityDbContext"/>. 38/// Initializes a new instance of the <see cref="IdentityDbContext" /> class.
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (31)
DefaultPocoTest.cs (3)
24.AddDbContext<IdentityDbContext>(o => 28.AddEntityFrameworkStores<IdentityDbContext>(); 37scoped.ServiceProvider.GetRequiredService<IdentityDbContext>().Database.EnsureCreated();
UserStoreTest.cs (28)
31using (var db = CreateContext()) 41private IdentityDbContext CreateContext() 43var db = DbUtil.Create<IdentityDbContext>(_fixture.Connection); 55services.AddSingleton<IUserStore<IdentityUser>>(new UserStore<IdentityUser, IdentityRole, IdentityDbContext>((IdentityDbContext)context)); 60services.AddSingleton<IRoleStore<IdentityRole>>(new RoleStore<IdentityRole, IdentityDbContext>((IdentityDbContext)context)); 66var store = new UserStore(new IdentityDbContext(new DbContextOptionsBuilder<IdentityDbContext>().Options)); 100var store = new UserStore(new IdentityDbContext(new DbContextOptionsBuilder<IdentityDbContext>().Options)); 213using (var db = new IdentityDbContext(options)) 220using (var db = new IdentityDbContext(options)) 221using (var db2 = new IdentityDbContext(options)) 244using (var db = new IdentityDbContext(options)) 251using (var db = new IdentityDbContext(options)) 252using (var db2 = new IdentityDbContext(options)) 273using (var db = new IdentityDbContext(options)) 280using (var db = new IdentityDbContext(options)) 281using (var db2 = new IdentityDbContext(options)) 303using (var db = new IdentityDbContext(options)) 310using (var db = new IdentityDbContext(options)) 311using (var db2 = new IdentityDbContext(options)) 334using (var db = new IdentityDbContext(options)) 341using (var db = new IdentityDbContext(options)) 342using (var db2 = new IdentityDbContext(options)) 364using (var db = new IdentityDbContext(options)) 371using (var db = new IdentityDbContext(options)) 372using (var db2 = new IdentityDbContext(options))
Microsoft.AspNetCore.Identity.FunctionalTests (26)
IdentityUserTests\IdentityUserAuthorizationTests.cs (2)
9public class IdentityUserAuthorizationTests : AuthorizationTests<Startup, IdentityDbContext> 11public IdentityUserAuthorizationTests(ServerFactory<Startup, IdentityDbContext> serverFactory) : base(serverFactory)
IdentityUserTests\IdentityUserAuthorizationWithoutEndpointRoutingTests.cs (2)
9public class IdentityUserAuthorizationWithoutEndpointRoutingTests : AuthorizationTests<StartupWithoutEndpointRouting, IdentityDbContext> 11public IdentityUserAuthorizationWithoutEndpointRoutingTests(ServerFactory<StartupWithoutEndpointRouting, IdentityDbContext> serverFactory)
IdentityUserTests\IdentityUserLoginTests.cs (2)
9public class IdentityUserLoginTests : LoginTests<Startup, IdentityDbContext> 11public IdentityUserLoginTests(ServerFactory<Startup, IdentityDbContext> serverFactory) : base(serverFactory)
IdentityUserTests\IdentityUserLoginWithoutEndpointRoutingTests.cs (2)
9public class IdentityUserLoginWithoutEndpointRoutingTests : LoginTests<StartupWithoutEndpointRouting, IdentityDbContext> 11public IdentityUserLoginWithoutEndpointRoutingTests(ServerFactory<StartupWithoutEndpointRouting, IdentityDbContext> serverFactory) : base(serverFactory)
IdentityUserTests\IdentityUserManagementTests.cs (2)
9public class IdentityUserManagementTests : ManagementTests<Startup, IdentityDbContext> 11public IdentityUserManagementTests(ServerFactory<Startup, IdentityDbContext> serverFactory) : base(serverFactory)
IdentityUserTests\IdentityUserRegistrationTests.cs (2)
9public class IdentityUserRegistrationTests : RegistrationTests<Startup, IdentityDbContext> 11public IdentityUserRegistrationTests(ServerFactory<Startup, IdentityDbContext> serverFactory) : base(serverFactory)
MapIdentityApiTests.cs (3)
631.AddDbContext<IdentityDbContext>((sp, options) => options.UseSqlite(dbConnection2)) 633.AddEntityFrameworkStores<IdentityDbContext>() 647await app.Services.GetRequiredService<IdentityDbContext>().Database.EnsureCreatedAsync();
NoIdentityAddedTests.cs (3)
11public class NoIdentityAddedTests : IClassFixture<ServerFactory<NoIdentityStartup, IdentityDbContext>> 13public NoIdentityAddedTests(ServerFactory<NoIdentityStartup, IdentityDbContext> serverFactory) 18public ServerFactory<NoIdentityStartup, IdentityDbContext> ServerFactory { get; }
PocoUserTests\PocoUserAuthorizationTests.cs (2)
9public class PocoUserAuthorizationTests : AuthorizationTests<PocoUserStartup, IdentityDbContext> 11public PocoUserAuthorizationTests(ServerFactory<PocoUserStartup, IdentityDbContext> serverFactory) : base(serverFactory)
PocoUserTests\PocoUserLoginTests.cs (2)
9public class PocoUserLoginTests : LoginTests<PocoUserStartup, IdentityDbContext> 11public PocoUserLoginTests(ServerFactory<PocoUserStartup, IdentityDbContext> serverFactory) : base(serverFactory)
PocoUserTests\PocoUserManagementTests.cs (2)
9public class PocoUserManagementTests : ManagementTests<PocoUserStartup, IdentityDbContext> 11public PocoUserManagementTests(ServerFactory<PocoUserStartup, IdentityDbContext> serverFactory) : base(serverFactory)
PocoUserTests\PocoUserRegistrationTests.cs (2)
9public class PocoUserRegistrationTests : RegistrationTests<PocoUserStartup, IdentityDbContext> 11public PocoUserRegistrationTests(ServerFactory<PocoUserStartup, IdentityDbContext> serverFactory) : base(serverFactory)