public void TestCreateDatabaseSeedTaxAndStock() { //SETUP var options = SqliteInMemory.CreateOptions <ExampleDbContext>(); using (var context = new ExampleDbContext(options)) { //ATTEMPT context.Database.EnsureCreated(); context.SeedTaxAndStock(); //VERIFY context.TaxRates.Count().ShouldEqual(2); context.ProductStocks.Count().ShouldEqual(3); } }