public void TestEf6DesignerMethod() { System.Data.Entity.Database.SetInitializer(new LagaInitializer()); using (var context = new LagaModel()) { var threadList = context.logger_threads.ToList(); Assert.AreEqual(threadList.Count, 1); } }