public IUndoableEdit AddCombination(Combination combi) { if (testCase == null) { throw new Exception("The test case cannot be null"); } CompoundEdit ce = new CompoundEdit(); ce.AddEdit(EditFactory.instance.CreateAddCombinationEdit(testCase, combi)); testCase.AddCombination(combi); RiskLevelManager rlc = new RiskLevelManager(combi); ce.AddEdit(rlc.ApplyRiskLevelToChildren()); StateObjectManager som = new StateObjectManager(combi); ce.AddEdit(som.ApplyStateToChildren()); return(ce); }