12 references to TestDbContext
Aspire.Hosting.MySql.Tests (12)
MySqlFunctionalTests.cs (10)
496
hb.AddMySqlDbContext<
TestDbContext
>(db.Resource.Name);
505
var
dbContext = host.Services.GetRequiredService<
TestDbContext
>();
513
var
dbContext = host.Services.GetRequiredService<
TestDbContext
>();
520
var
dbContext = host.Services.GetRequiredService<
TestDbContext
>();
521
dbContext.Cars.Add(new
TestDbContext
.Car { Brand = "BatMobile" });
527
var
dbContext = host.Services.GetRequiredService<
TestDbContext
>();
TestDbContext.cs (2)
10
public TestDbContext(DbContextOptions<
TestDbContext
> options) : base(options)
15
public DbContextOptions<
TestDbContext
> Options { get; }