public void Structure_MemParentChildren_Initial()
        {
            var ctx  = CurrentContext.Security;
            var repo = Tools.CreateRepository(ctx);

            var expected = "{E1{E2{E5{E14{E50{E51{E52}E53}}E15}E6{E16E17}E7{E18E19}}E3{E8{E20E21{E22E23E24E25E26E27E28E29}}E9E10}E4{E11E12{E30{E31{E33E34{E40E43{E44E45E46E47E48E49}}}E32{E35{E41{E42}}E36{E37{E38E39}}}}}E13}}}";
            var actual   = Tools.EntityIdStructureToString(ctx);

            Assert.AreEqual(expected, actual);
        }
Beispiel #2
0
        public void Structure_MemParentChildren_MoveSiblingToSibling()
        {
            context = Tools.GetEmptyContext(TestUser.User1);
            var ctx  = context.Security;
            var repo = Tools.CreateRepository(ctx);

            ctx.MoveEntity(Id("E6"), Id("E3"));

            var expected = "{E1{E2{E5{E14{E50{E51{E52}E53}}E15}E7{E18E19}}E3{E6{E16E17}E8{E20E21{E22E23E24E25E26E27E28E29}}E9E10}E4{E11E12{E30{E31{E33E34{E40E43{E44E45E46E47E48E49}}}E32{E35{E41{E42}}E36{E37{E38E39}}}}}E13}}}";
            var actual   = Tools.EntityIdStructureToString(ctx);

            Assert.AreEqual(expected, actual);
        }