19 references to TestDbContext
Aspire.Hosting.Oracle.Tests (19)
OracleFunctionalTests.cs (17)
52hb.AddOracleDatabaseDbContext<TestDbContext>(db.Resource.Name); 58var dbContext = host.Services.GetRequiredService<TestDbContext>(); 61dbContext.Cars.Add(new TestDbContext.Car { Brand = "BatMobile" }); 137hb.AddOracleDatabaseDbContext<TestDbContext>(db1.Resource.Name); 143using var dbContext = host.Services.GetRequiredService<TestDbContext>(); 149dbContext.Cars.Add(new TestDbContext.Car { Brand = "BatMobile" }); 197hb.AddOracleDatabaseDbContext<TestDbContext>(db2.Resource.Name); 203using var dbContext = host.Services.GetRequiredService<TestDbContext>(); 304hb.AddOracleDatabaseDbContext<TestDbContext>(db.Resource.Name); 312var dbContext = host.Services.GetRequiredService<TestDbContext>(); 401hb.AddOracleDatabaseDbContext<TestDbContext>(db.Resource.Name); 409var dbContext = host.Services.GetRequiredService<TestDbContext>();
TestDbContext.cs (2)
10public TestDbContext(DbContextOptions<TestDbContext> options) : base(options) 15public DbContextOptions<TestDbContext> Options { get; }