void TestR9() { "Demonstrating Requirement #9".title(); WriteLine("Loading project 2 package structure XML in the DB"); ReadXml <string> testRead = new ReadXml <string>(); // loading project structure xml in db testRead.readXml(dbRead); WriteLine(); WriteLine("Displaying DB contents after reading the XML"); dbRead.showEnumerableDB(); WriteLine(); }
static void Main(string[] args) { DBEngine <string, DBElement <string, List <string> > > dbRead = new DBEngine <string, DBElement <string, List <string> > >(); ReadXml <string> test = new ReadXml <string>(); DBEngine <string, DBElement <string, List <string> > > dbPay = new DBEngine <string, DBElement <string, List <string> > >(); DBEngine <int, DBElement <int, List <string> > > db = new DBEngine <int, DBElement <int, List <string> > >(); ReadXml <string> test2 = new ReadXml <string>(); ReadXml <int> test1 = new ReadXml <int>(); test1.readXml(db); Console.WriteLine(); Console.WriteLine(); db.showEnumerableDB(); dbPay.showEnumerableDB(); WriteLine(); }
void TestR5() { "Demonstrating Requirement #5".title(); WriteLine(); WriteLine("Persisting Database in to the XML\n"); PersistEngine <string> test = new PersistEngine <string>(); // persisting XML test.createXML(dbString); "Demonstrating Augmenting back from XML #5".title(); ReadXml <string> testRead = new ReadXml <string>(); Console.WriteLine("\nReading the XML\n"); // reading xml testRead.readXml(dbRead); WriteLine(); WriteLine("Displaying DB contents after reading the XML"); dbRead.showEnumerableDB(); WriteLine(); }