public void RemoveTestGroup(TestGroup group) { if (_testGroupDictionary.ContainsKey(group.key)) { _testGroupDictionary.Remove(group.key); } }
public TestGroup InsertNewTestGroup() { var testGroup = new TestGroup(); if (_testGroupDictionary.ContainsKey(testGroup.key)) { errorMessage = string.Format("The group [{0}] alread exists.", testGroup.key); return(null); } _testGroupDictionary.Add(testGroup.key, testGroup); return(testGroup); }