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