protected override void InitValue(TargetDocument obj)
 {
     if (obj.ContainsPath(new Path(_from)))
     {
         this.Value = obj[new Path(_from)];
     }
 }
        public override Boolean Execute(TargetDocument obj)
        {
            if (obj.ContainsPath(Path))
            {
                Object valueToTest = obj[Path];

                return valueToTest.Equals(ExpectedResult);
            }

            return false;
        }
        public override Boolean Execute(TargetDocument obj)
        {
            if (obj.ContainsPath(new Path(_from)))
            {
                //remove the property
                obj.RemoveProperty(new Path(_from));
                //add the new one
                obj.CreateOrUpdateProperty(Path, Value, true);
            }

            return true;
        }
 public override Boolean Execute(TargetDocument obj)
 {
     //according to RFC 6902 if the path does not exists than the operation fails
     if (obj.ContainsPath(Path))
     {
         obj.RemoveProperty(Path);
         return true;
     }
     else
     {
         return false;
     }
 }