19 references to TestDbContext
Aspire.Hosting.Oracle.Tests (19)
OracleFunctionalTests.cs (17)
53hb.AddOracleDatabaseDbContext<TestDbContext>(db.Resource.Name); 59var dbContext = host.Services.GetRequiredService<TestDbContext>(); 62dbContext.Cars.Add(new TestDbContext.Car { Brand = "BatMobile" }); 139hb.AddOracleDatabaseDbContext<TestDbContext>(db1.Resource.Name); 145using var dbContext = host.Services.GetRequiredService<TestDbContext>(); 151dbContext.Cars.Add(new TestDbContext.Car { Brand = "BatMobile" }); 200hb.AddOracleDatabaseDbContext<TestDbContext>(db2.Resource.Name); 206using var dbContext = host.Services.GetRequiredService<TestDbContext>(); 307hb.AddOracleDatabaseDbContext<TestDbContext>(db.Resource.Name); 315var dbContext = host.Services.GetRequiredService<TestDbContext>(); 404hb.AddOracleDatabaseDbContext<TestDbContext>(db.Resource.Name); 412var dbContext = host.Services.GetRequiredService<TestDbContext>();
TestDbContext.cs (2)
10public TestDbContext(DbContextOptions<TestDbContext> options) : base(options) 15public DbContextOptions<TestDbContext> Options { get; }