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