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