public void Check10DatabaseResetWithIGenericServicesDbContextOk() { using (var db = new SampleWebAppDb() as IGenericServicesDbContext) { //SETUP DataLayerInitialise.InitialiseThis(); var filepath = TestFileHelpers.GetTestFileFilePath("DbContentSimple.xml"); //ATTEMPT DataLayerInitialise.ResetDatabaseToTestData(db as SampleWebAppDb, filepath); //VERIFY db.Set<Blog>().Count().ShouldEqual(2); db.Set<Post>().Count().ShouldEqual(3); db.Set<Tag>().Count().ShouldEqual(3); db.Set<PostTagGrade>().Count().ShouldEqual(2); } }