Exemplo n.º 1
0
 public void RemoveTestGroup(TestGroup group)
 {
     if (_testGroupDictionary.ContainsKey(group.key))
     {
         _testGroupDictionary.Remove(group.key);
     }
 }
Exemplo n.º 2
0
        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);
        }