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()); }
public IClassificationType CreateClassificationType(string type, IEnumerable <IClassificationType> baseTypes) { return(_types[type] = new MockClassificationType(type, baseTypes.ToArray())); }