Ejemplo n.º 1
0
        //public PortDBViewModel ImportXML()
        public void ImportXML()
        {
            PortDBViewModel originalParsedXML = Testing.ParseXML(Testing.XMLinPath);
            PortDBViewModel normalizedXml     = Testing.normalizeIDs(originalParsedXML);

            Testing.AddManyCategoriesFromParamToDBTest(normalizedXml.Categories);
            Testing.AddManySubCategoriesFromParamToDBTest(normalizedXml.Subcategories);
            Testing.AddManyFoodItemFromParamToDBTest(normalizedXml.Foods);
        }