コード例 #1
0
        public void RevertEntityStateWithDeletedStateSucceeds()
        {
            // Arrange
            var svc    = new biz.dfch.CS.Appclusive.Api.Core.Core(_uri);
            var entity = svc.Nodes.First();

            svc.DeleteObject(entity);

            // Act
            svc.RevertEntityState(entity);

            // Assert
            Assert.IsFalse(svc.HasPendingChanges());
        }
コード例 #2
0
        public void RevertEntityStateWithModifiedStateSucceeds()
        {
            // Arrange
            var svc  = new biz.dfch.CS.Appclusive.Api.Core.Core(_uri);
            var node = svc.Nodes.First();

            node.Description = "arbitrary-changed-description-setting-the-entity-state-to-modified";

            // Act
            svc.RevertEntityState(node);

            // Assert
            Assert.IsFalse(svc.HasPendingChanges());
        }
コード例 #3
0
        public void RevertEntityStateWithAddedStateSucceeds()
        {
            // Arrange
            var svc  = new biz.dfch.CS.Appclusive.Api.Core.Core(_uri);
            var node = new Node();

            svc.AddToNodes(node);

            // Act
            svc.RevertEntityState(node);

            // Assert
            Assert.IsFalse(svc.HasPendingChanges());
        }
コード例 #4
0
        public void RevertEntityStateWithDeletedStateSucceeds()
        {
            // Arrange
            var svc = new biz.dfch.CS.Appclusive.Api.Core.Core(_uri);
            var entity = svc.Nodes.First();
            svc.DeleteObject(entity);

            // Act
            svc.RevertEntityState(entity);

            // Assert
            Assert.IsFalse(svc.HasPendingChanges());
        }
コード例 #5
0
        public void RevertEntityStateWithModifiedStateSucceeds()
        {
            // Arrange
            var svc = new biz.dfch.CS.Appclusive.Api.Core.Core(_uri);
            var node = svc.Nodes.First();
            node.Description = "arbitrary-changed-description-setting-the-entity-state-to-modified";

            // Act
            svc.RevertEntityState(node);

            // Assert
            Assert.IsFalse(svc.HasPendingChanges());
        }
コード例 #6
0
        public void RevertEntityStateWithAddedStateSucceeds()
        {
            // Arrange
            var svc = new biz.dfch.CS.Appclusive.Api.Core.Core(_uri);
            var node = new Node();
            svc.AddToNodes(node);

            // Act
            svc.RevertEntityState(node);

            // Assert
            Assert.IsFalse(svc.HasPendingChanges());
        }