19 references to TestDbContext
Aspire.Hosting.Oracle.Tests (19)
OracleFunctionalTests.cs (17)
55hb.AddOracleDatabaseDbContext<TestDbContext>(db.Resource.Name); 61var dbContext = host.Services.GetRequiredService<TestDbContext>(); 64dbContext.Cars.Add(new TestDbContext.Car { Brand = "BatMobile" }); 141hb.AddOracleDatabaseDbContext<TestDbContext>(db1.Resource.Name); 147using var dbContext = host.Services.GetRequiredService<TestDbContext>(); 153dbContext.Cars.Add(new TestDbContext.Car { Brand = "BatMobile" }); 202hb.AddOracleDatabaseDbContext<TestDbContext>(db2.Resource.Name); 208using var dbContext = host.Services.GetRequiredService<TestDbContext>(); 309hb.AddOracleDatabaseDbContext<TestDbContext>(db.Resource.Name); 317var dbContext = host.Services.GetRequiredService<TestDbContext>(); 406hb.AddOracleDatabaseDbContext<TestDbContext>(db.Resource.Name); 414var dbContext = host.Services.GetRequiredService<TestDbContext>();
TestDbContext.cs (2)
10public TestDbContext(DbContextOptions<TestDbContext> options) : base(options) 15public DbContextOptions<TestDbContext> Options { get; }