Exemple #1
0
        public IEnumerable <string> GetListOfMissingsInFile(string xmlPathsFileName, string xmlFileToCheck)
        {
            var listOfMissings = new List <string>();

            try
            {
                var xmlPathsFile = xmlPathsFileService.LoadXmlPathsFile(xmlPathsFileName);
                foreach (var xmlPath in xmlPathsFile.XmlPaths)
                {
                    var rawPath = FormatPathFromListToRaw(xmlPath);
                    if (!XmlFileContainsElement(xmlFileToCheck, xmlPath))
                    {
                        listOfMissings.Add(rawPath);
                    }
                }
                return(listOfMissings);
            }
            catch (Exception ex)
            {
                _errMsg = ex.Message;
            }

            return(null);
        }
 public XmlPathsFileServiceTest()
 {
     xmlPathsFileService = new XmlPathsFileService();
     xmlPathsFile        = xmlPathsFileService.LoadXmlPathsFile(xmlPathsFileName01);
 }