public void IRequirementsBean() { Requirement req = new Requirement(to.TestCasesStruct, "Req 1"); Requirement req2 = new Requirement(to.TestCasesStruct, "Req 2"); Effect effect = new Effect(to.TestCasesStruct); effect.AddRequirement(req2); dao.Save(); to.TestCasesStruct.RemoveRequirement(req); dao.DeleteItem(req); effect.RemoveRequirement(req2); to.TestCasesStruct.RemoveRequirement(req2); dao.DeleteItem(req2); dao.Save(); Requirement req3 = dao.GetItem(req2.GetType(), req.Id) as Requirement; Assert.IsNull(req3); }