public void ITestCasesBean()
        {
            TestCase tc = new TestCase(to.TestCasesStruct);

            dao.Save();
            to.TestCasesStruct.RemoveTestCase(tc);
            dao.DeleteItem(tc);
            TestCase tc2 = dao.GetItem(tc.GetType(), tc.Id) as TestCase;

            Assert.IsNull(tc2);
        }
        public void ICombinationsBean()
        {
            TestCase    tc   = new TestCase(to.TestCasesStruct);
            DefaultDAO  dao  = new DefaultDAO(to.TestCasesStruct);
            Dependency  dep  = new Dependency(to.TestCasesStruct);
            Combination comb = new Combination(dep);

            tc.AddCombination(comb);
            dao.Save();
            Assert.IsNotNull(dao.GetItem(tc.GetType(), tc.Id));
            Assert.IsNotNull(dao.GetItem(comb.GetType(), comb.Id));
            tc.RemoveCombination(comb);
            dep.RemoveCombination(comb);
            dao.DeleteItem(comb);
            to.TestCasesStruct.RemoveTestCase(tc);
            dao.DeleteItem(tc);
            to.TestCasesStruct.RemoveDependency(dep);
            dao.DeleteItem(dep);
        }
        public void IEquivalenceClassesBean()
        {
            TestCase         tc               = new TestCase(to.TestCasesStruct);
            DefaultDAO       dao              = new DefaultDAO(to.TestCasesStruct);
            Element          elem             = new Element(to.TestCasesStruct);
            EquivalenceClass equivalenceClass = new EquivalenceClass(elem);

            tc.AddEquivalenceClass(equivalenceClass);
            dao.Save();
            Assert.IsNotNull(dao.GetItem(tc.GetType(), tc.Id));
            Assert.IsNotNull(dao.GetItem(equivalenceClass.GetType(), equivalenceClass.Id));
            tc.RemoveEquivalenceClass(equivalenceClass);
            elem.RemoveEquivalenceClass(equivalenceClass);
            dao.DeleteItem(equivalenceClass);
            to.TestCasesStruct.RemoveTestCase(tc);
            dao.DeleteItem(tc);
            to.TestCasesStruct.RemoveElement(elem);
            dao.DeleteItem(elem);
        }