private void SetupArchiveXmlUnits() { XmlUnits = new List <ArchiveXmlUnit>(); foreach (KeyValuePair <string, IEnumerable <string> > documentedXmlUnit in Details.DocumentedXmlUnits) { string xmlFileName = documentedXmlUnit.Key; IEnumerable <string> xmlSchemaNames = documentedXmlUnit.Value; var archiveXmlFile = new ArchiveXmlFile(WorkingDirectory.Content().WithFile(xmlFileName)); var archiveXmlSchemas = new List <ArchiveXmlSchema>(); foreach (string xmlSchemaName in xmlSchemaNames) { FileInfo xmlSchemaFile = WorkingDirectory.Content().WithFile(xmlSchemaName); ArchiveXmlSchema archiveXmlSchema = ArchiveXmlSchema.Create(xmlSchemaFile); archiveXmlSchemas.Add(archiveXmlSchema); } XmlUnits.Add(new ArchiveXmlUnit(archiveXmlFile, archiveXmlSchemas)); } }
public ArchiveXmlUnit(ArchiveXmlFile file, ArchiveXmlSchema schema) : this(file, new List <ArchiveXmlSchema> { schema }) { }