12 references to TestDbContext
Aspire.Hosting.MySql.Tests (12)
MySqlFunctionalTests.cs (10)
415
hb.AddMySqlDbContext<
TestDbContext
>(db.Resource.Name);
424
var
dbContext = host.Services.GetRequiredService<
TestDbContext
>();
432
var
dbContext = host.Services.GetRequiredService<
TestDbContext
>();
439
var
dbContext = host.Services.GetRequiredService<
TestDbContext
>();
440
dbContext.Cars.Add(new
TestDbContext
.Car { Brand = "BatMobile" });
446
var
dbContext = host.Services.GetRequiredService<
TestDbContext
>();
TestDbContext.cs (2)
10
public TestDbContext(DbContextOptions<
TestDbContext
> options) : base(options)
15
public DbContextOptions<
TestDbContext
> Options { get; }