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" }); 136hb.AddOracleDatabaseDbContext<TestDbContext>(db1.Resource.Name); 142using var dbContext = host.Services.GetRequiredService<TestDbContext>(); 148dbContext.Cars.Add(new TestDbContext.Car { Brand = "BatMobile" }); 196hb.AddOracleDatabaseDbContext<TestDbContext>(db2.Resource.Name); 202using var dbContext = host.Services.GetRequiredService<TestDbContext>(); 303hb.AddOracleDatabaseDbContext<TestDbContext>(db.Resource.Name); 311var dbContext = host.Services.GetRequiredService<TestDbContext>(); 400hb.AddOracleDatabaseDbContext<TestDbContext>(db.Resource.Name); 408var dbContext = host.Services.GetRequiredService<TestDbContext>();
TestDbContext.cs (2)
10public TestDbContext(DbContextOptions<TestDbContext> options) : base(options) 15public DbContextOptions<TestDbContext> Options { get; }