public MockClassificationTypeRegistryService()
 {
     foreach (FieldInfo fi in typeof(PredefinedClassificationTypeNames).GetFields()) {
         string name = (string)fi.GetValue(null);
         _types[name] = new MockClassificationType(name, new IClassificationType[0]);
     }
 }
Exemple #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());
 }
Exemple #4
0
 public IClassificationType CreateClassificationType(string type, IEnumerable <IClassificationType> baseTypes)
 {
     return(_types[type] = new MockClassificationType(type, baseTypes.ToArray()));
 }