Esempio n. 1
0
        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();
        }
Esempio n. 2
0
        public void TestRelationships01Rev( )
        {
            var child  = new Resource( );
            var parent = new NavContainer( );

            parent.FolderContents.Add(child);
            parent.Save( );

            Assert.IsNotNull(child.ResourceInFolder);
        }
Esempio n. 3
0
        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);
        }