public void CreateFixtureNow() { SqlDbUnitTest dbUnit = new SqlDbUnitTest(connectionString); dbUnit.ReadXmlSchema(@"DBFixtures/JewelryItems.xsd"); DataSet ds = dbUnit.GetDataSetFromDb(); ds.WriteXml(@"DBFixtures/JewelryItemsAllCategories.xml"); }
public void GetMyTestDataXmlFile() { var connectionString = System.Configuration.ConfigurationManager.ConnectionStrings["IntegrationTests.Properties.Settings.TDDWithMVCConnectionString"].ConnectionString; var mySqlDatabase = new SqlDbUnitTest(connectionString); mySqlDatabase.ReadXmlSchema(DatabaseXsd02); System.Data.DataSet ds = mySqlDatabase.GetDataSetFromDb(); ds.WriteXml(TestdataXml02); }