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