20 instantiations of IdentityDbContext
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (20)
UserStoreTest.cs (20)
66
var store = new UserStore(new
IdentityDbContext
(new DbContextOptionsBuilder<IdentityDbContext>().Options));
100
var store = new UserStore(new
IdentityDbContext
(new DbContextOptionsBuilder<IdentityDbContext>().Options));
216
using (var db = new
IdentityDbContext
(options))
223
using (var db = new
IdentityDbContext
(options))
224
using (var db2 = new
IdentityDbContext
(options))
247
using (var db = new
IdentityDbContext
(options))
254
using (var db = new
IdentityDbContext
(options))
255
using (var db2 = new
IdentityDbContext
(options))
276
using (var db = new
IdentityDbContext
(options))
283
using (var db = new
IdentityDbContext
(options))
284
using (var db2 = new
IdentityDbContext
(options))
306
using (var db = new
IdentityDbContext
(options))
313
using (var db = new
IdentityDbContext
(options))
314
using (var db2 = new
IdentityDbContext
(options))
337
using (var db = new
IdentityDbContext
(options))
344
using (var db = new
IdentityDbContext
(options))
345
using (var db2 = new
IdentityDbContext
(options))
367
using (var db = new
IdentityDbContext
(options))
374
using (var db = new
IdentityDbContext
(options))
375
using (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)
41
StartupBase<IdentityUser,
IdentityDbContext
>.DisableFilePolling(env);
PocoUserStartup.cs (1)
10
public class PocoUserStartup : StartupBase<PocoUser,
IdentityDbContext
>
Startup.cs (1)
9
public class Startup : StartupBase<IdentityUser,
IdentityDbContext
>
StartupWithoutEndpointRouting.cs (1)
9
public 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
>();
37
scoped.ServiceProvider.GetRequiredService<
IdentityDbContext
>().Database.EnsureCreated();
UserStoreTest.cs (28)
31
using (
var
db = CreateContext())
41
private
IdentityDbContext
CreateContext()
43
var
db = DbUtil.Create<
IdentityDbContext
>(_fixture.Connection);
55
services.AddSingleton<IUserStore<IdentityUser>>(new UserStore<IdentityUser, IdentityRole,
IdentityDbContext
>((
IdentityDbContext
)context));
60
services.AddSingleton<IRoleStore<IdentityRole>>(new RoleStore<IdentityRole,
IdentityDbContext
>((
IdentityDbContext
)context));
66
var store = new UserStore(new IdentityDbContext(new DbContextOptionsBuilder<
IdentityDbContext
>().Options));
100
var store = new UserStore(new IdentityDbContext(new DbContextOptionsBuilder<
IdentityDbContext
>().Options));
216
using (
var
db = new IdentityDbContext(options))
223
using (
var
db = new IdentityDbContext(options))
224
using (
var
db2 = new IdentityDbContext(options))
247
using (
var
db = new IdentityDbContext(options))
254
using (
var
db = new IdentityDbContext(options))
255
using (
var
db2 = new IdentityDbContext(options))
276
using (
var
db = new IdentityDbContext(options))
283
using (
var
db = new IdentityDbContext(options))
284
using (
var
db2 = new IdentityDbContext(options))
306
using (
var
db = new IdentityDbContext(options))
313
using (
var
db = new IdentityDbContext(options))
314
using (
var
db2 = new IdentityDbContext(options))
337
using (
var
db = new IdentityDbContext(options))
344
using (
var
db = new IdentityDbContext(options))
345
using (
var
db2 = new IdentityDbContext(options))
367
using (
var
db = new IdentityDbContext(options))
374
using (
var
db = new IdentityDbContext(options))
375
using (
var
db2 = new IdentityDbContext(options))
Microsoft.AspNetCore.Identity.FunctionalTests (26)
IdentityUserTests\IdentityUserAuthorizationTests.cs (2)
9
public class IdentityUserAuthorizationTests : AuthorizationTests<Startup,
IdentityDbContext
>
11
public IdentityUserAuthorizationTests(ServerFactory<Startup,
IdentityDbContext
> serverFactory) : base(serverFactory)
IdentityUserTests\IdentityUserAuthorizationWithoutEndpointRoutingTests.cs (2)
9
public class IdentityUserAuthorizationWithoutEndpointRoutingTests : AuthorizationTests<StartupWithoutEndpointRouting,
IdentityDbContext
>
11
public IdentityUserAuthorizationWithoutEndpointRoutingTests(ServerFactory<StartupWithoutEndpointRouting,
IdentityDbContext
> serverFactory)
IdentityUserTests\IdentityUserLoginTests.cs (2)
9
public class IdentityUserLoginTests : LoginTests<Startup,
IdentityDbContext
>
11
public IdentityUserLoginTests(ServerFactory<Startup,
IdentityDbContext
> serverFactory) : base(serverFactory)
IdentityUserTests\IdentityUserLoginWithoutEndpointRoutingTests.cs (2)
9
public class IdentityUserLoginWithoutEndpointRoutingTests : LoginTests<StartupWithoutEndpointRouting,
IdentityDbContext
>
11
public IdentityUserLoginWithoutEndpointRoutingTests(ServerFactory<StartupWithoutEndpointRouting,
IdentityDbContext
> serverFactory) : base(serverFactory)
IdentityUserTests\IdentityUserManagementTests.cs (2)
9
public class IdentityUserManagementTests : ManagementTests<Startup,
IdentityDbContext
>
11
public IdentityUserManagementTests(ServerFactory<Startup,
IdentityDbContext
> serverFactory) : base(serverFactory)
IdentityUserTests\IdentityUserRegistrationTests.cs (2)
9
public class IdentityUserRegistrationTests : RegistrationTests<Startup,
IdentityDbContext
>
11
public IdentityUserRegistrationTests(ServerFactory<Startup,
IdentityDbContext
> serverFactory) : base(serverFactory)
MapIdentityApiTests.cs (3)
631
.AddDbContext<
IdentityDbContext
>((sp, options) => options.UseSqlite(dbConnection2))
633
.AddEntityFrameworkStores<
IdentityDbContext
>()
647
await app.Services.GetRequiredService<
IdentityDbContext
>().Database.EnsureCreatedAsync();
NoIdentityAddedTests.cs (3)
11
public class NoIdentityAddedTests : IClassFixture<ServerFactory<NoIdentityStartup,
IdentityDbContext
>>
13
public NoIdentityAddedTests(ServerFactory<NoIdentityStartup,
IdentityDbContext
> serverFactory)
18
public ServerFactory<NoIdentityStartup,
IdentityDbContext
> ServerFactory { get; }
PocoUserTests\PocoUserAuthorizationTests.cs (2)
9
public class PocoUserAuthorizationTests : AuthorizationTests<PocoUserStartup,
IdentityDbContext
>
11
public PocoUserAuthorizationTests(ServerFactory<PocoUserStartup,
IdentityDbContext
> serverFactory) : base(serverFactory)
PocoUserTests\PocoUserLoginTests.cs (2)
9
public class PocoUserLoginTests : LoginTests<PocoUserStartup,
IdentityDbContext
>
11
public PocoUserLoginTests(ServerFactory<PocoUserStartup,
IdentityDbContext
> serverFactory) : base(serverFactory)
PocoUserTests\PocoUserManagementTests.cs (2)
9
public class PocoUserManagementTests : ManagementTests<PocoUserStartup,
IdentityDbContext
>
11
public PocoUserManagementTests(ServerFactory<PocoUserStartup,
IdentityDbContext
> serverFactory) : base(serverFactory)
PocoUserTests\PocoUserRegistrationTests.cs (2)
9
public class PocoUserRegistrationTests : RegistrationTests<PocoUserStartup,
IdentityDbContext
>
11
public PocoUserRegistrationTests(ServerFactory<PocoUserStartup,
IdentityDbContext
> serverFactory) : base(serverFactory)