示例#1
0
 public virtual void TestMultipleStoreCalls()
 {
     CascadeOnDeleteHierarchyTestCase.SubItem item = ((CascadeOnDeleteHierarchyTestCase.SubItem
                                                       )RetrieveOnlyInstance(typeof(CascadeOnDeleteHierarchyTestCase.SubItem)));
     Store(item);
     AssertOccurrences(typeof(CascadeOnDeleteHierarchyTestCase.Data), 1);
 }
示例#2
0
 /// <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);
 }