Example #1
0
 private void BuildResponse(XmlProductFormater productsToImport)
 {
     foreach (var xmlProduct in productsToImport.Products)
     {
         productRequestToImport.Add(BuildRequest(xmlProduct));
     }
 }
Example #2
0
        internal void ProcessFile(FileStream fileStream)
        {
            XmlSerializer      serializer       = new XmlSerializer(typeof(XmlProductFormater));
            XmlProductFormater productsToImport = (XmlProductFormater)serializer.Deserialize(fileStream);

            BuildResponse(productsToImport);
        }