16 references to TestDbContext
Aspire.Hosting.Oracle.Tests (16)
OracleFunctionalTests.cs (14)
54hb.AddOracleDatabaseDbContext<TestDbContext>(db.Resource.Name); 60var dbContext = host.Services.GetRequiredService<TestDbContext>(); 63dbContext.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>(); 311hb.AddOracleDatabaseDbContext<TestDbContext>(db.Resource.Name); 319var dbContext = host.Services.GetRequiredService<TestDbContext>();
TestDbContext.cs (2)
10public TestDbContext(DbContextOptions<TestDbContext> options) : base(options) 15public DbContextOptions<TestDbContext> Options { get; }