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