public MockClassificationTypeRegistryService()
 {
     foreach (FieldInfo fi in typeof(PredefinedClassificationTypeNames).GetFields()) {
         string name = (string)fi.GetValue(null);
         _types[name] = new MockClassificationType(name, new IClassificationType[0]);
     }
 }
 private static MockClassificationType GetClasificationType(string name) {
     MockClassificationType type;
     if (!_types.TryGetValue(name, out type)) {
         _types[name] = type = new MockClassificationType(name, new IClassificationType[0]);
     }
     return type;
 }
 public MockClassificationTypeRegistryService()
 {
     foreach (FieldInfo fi in typeof(PredefinedClassificationTypeNames).GetFields())
     {
         string name = (string)fi.GetValue(null);
         _types[name] = new MockClassificationType(name, new IClassificationType[0]);
     }
 }
        private static MockClassificationType GetClasificationType(string name)
        {
            MockClassificationType type;

            if (!_types.TryGetValue(name, out type))
            {
                _types[name] = type = new MockClassificationType(name, new IClassificationType[0]);
            }
            return(type);
        }
 public IClassificationType CreateClassificationType(string type, IEnumerable<IClassificationType> baseTypes) {
     return _types[type] = new MockClassificationType(type, baseTypes.ToArray());
 }
예제 #6
0
 public void AddBaseType(MockClassificationType mockClassificationType) {
     _bases.Add(mockClassificationType);
 }
예제 #7
0
 public void AddBaseType(MockClassificationType mockClassificationType)
 {
     _bases.Add(mockClassificationType);
 }
 public IClassificationType CreateClassificationType(string type, IEnumerable <IClassificationType> baseTypes)
 {
     return(_types[type] = new MockClassificationType(type, baseTypes.ToArray()));
 }