public virtual void TestMultipleStoreCalls() { CascadeOnDeleteHierarchyTestCase.SubItem item = ((CascadeOnDeleteHierarchyTestCase.SubItem )RetrieveOnlyInstance(typeof(CascadeOnDeleteHierarchyTestCase.SubItem))); Store(item); AssertOccurrences(typeof(CascadeOnDeleteHierarchyTestCase.Data), 1); }
/// <exception cref="System.Exception"></exception> public virtual void Test() { CascadeOnDeleteHierarchyTestCase.SubItem item = (CascadeOnDeleteHierarchyTestCase.SubItem )((CascadeOnDeleteHierarchyTestCase.SubItem)RetrieveOnlyInstance(typeof(CascadeOnDeleteHierarchyTestCase.SubItem ))); Db().Delete(item); AssertOccurrences(typeof(CascadeOnDeleteHierarchyTestCase.Data), 0); Db().Commit(); AssertOccurrences(typeof(CascadeOnDeleteHierarchyTestCase.Data), 0); }