public void TestRelationshipsBug19508() { // The delete of a relationship is not being removed from teh write cache where the referenced resource is deleted. var child = new Resource(); var parent = new NavContainer(); parent.FolderContents.Add(child); parent.Save(); parent.FolderContents.Remove(child); child.Delete(); parent.Save(); }
public void TestRelationships01Rev( ) { var child = new Resource( ); var parent = new NavContainer( ); parent.FolderContents.Add(child); parent.Save( ); Assert.IsNotNull(child.ResourceInFolder); }
public void TestRelationships01( ) { var child = new NavContainer( ); var parent = new NavContainer( ); child.ResourceInFolder.Add(parent); child.Name = "Test " + Guid.NewGuid( ).ToString( ); child.Save( ); Assert.IsTrue(parent.FolderContents.Count > 0); }