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