public static void TestSetup() { var config = ConfigurationContainer.GetNewConfiguration(); using (var ctx = new TestContext()) { foreach (var order in ctx.Orders) { ctx.Orders.Remove(order); } ctx.SaveChanges(); } }