Ejemplo n.º 1
0
        public MethodDescriptionBuilder(MSBuildXmlParser xmlSource)
        {
            if (xmlSource == null)
            {
                throw new ArgumentNullException("xmlSource");
            }

            _xmlParser = xmlSource;
        }
 public void Init()
 {
     var assembly = Assembly.GetExecutingAssembly();
     Stream stream = assembly.GetManifestResourceStream("ALMTools.Documentation.Tests.TestData.ALMTools.Documentation.Tests.xml");
     using (XmlReader reader = XmlReader.Create(stream))
     {
         XDocument document = XDocument.Load(reader);
         _xmlSource = new MSBuildXmlParser(document);
     }
 }
Ejemplo n.º 3
0
        public DocGenerator(XDocument document)
        {
            if (document == null)
            {
                throw new ArgumentNullException("document");
            }

            var xmlSource = new MSBuildXmlParser(document);
            _classDescriptionBuilder = new ClassDescriptionBuilder(xmlSource);
            _methodDescriptionBuilder = new MethodDescriptionBuilder(xmlSource);
            _propertyDescriptionBuilder = new PropertyDescriptionBuilder(xmlSource);
        }