public MockClassificationTypeRegistryService()
 {
     foreach (FieldInfo fi in typeof(PredefinedClassificationTypeNames).GetFields()) {
         string name = (string)fi.GetValue(null);
         _types[name] = new MockClassificationType(name, new IClassificationType[0]);
     }
 }
Esempio n. 2
0
 public MockClassificationTypeRegistryService()
 {
     foreach (FieldInfo fi in typeof(PredefinedClassificationTypeNames).GetFields())
     {
         string name = (string)fi.GetValue(null);
         _types[name] = new MockClassificationType(name, new IClassificationType[0]);
     }
 }
 public IClassificationType CreateClassificationType(string type, IEnumerable<IClassificationType> baseTypes)
 {
     return _types[type] = new MockClassificationType(type, baseTypes.ToArray());
 }
Esempio n. 4
0
 public IClassificationType CreateClassificationType(string type, IEnumerable <IClassificationType> baseTypes)
 {
     return(_types[type] = new MockClassificationType(type, baseTypes.ToArray()));
 }