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