Ejemplo n.º 1
0
        private static Dictionary <MvdItemReference, int> GetUuidDictionary(this mvdXML mvd)
        {
            var ret = new Dictionary <MvdItemReference, int>();

            AddDic(ret, mvd);
            foreach (var conceptTemplate in mvd.GetAllConceptTemplates())
            {
                AddDic(ret, conceptTemplate);
            }

            foreach (var item in mvd.GetAllConcepts())
            {
                AddDic(ret, item);
            }

            foreach (var item in mvd.GetAllConceptsRoots())
            {
                AddDic(ret, item);
            }

            foreach (var item in mvd.Views)
            {
                AddDic(ret, item);
                foreach (var modelViewExchangeRequirement in item.ExchangeRequirements)
                {
                    AddDic(ret, modelViewExchangeRequirement);
                }
            }
            return(ret);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Tests the existence of required variable names in the templates.
 /// </summary>
 /// <param name="mvd">the mvdXML element to test</param>
 /// <returns>An enumerable of strings with failure feedback; empty if all tests are passed.</returns>
 public static IEnumerable <string> ReportVariableNameIssues(this mvdXML mvd)
 {
     foreach (var concept in mvd.GetAllConcepts())
     {
         foreach (var reportIssue in ReportVariableNameIssues(concept))
         {
             yield return(reportIssue);
         }
     }
 }