public void CreatePluginOutcome()
 {
     var po = new PluginOutcome();
         Assert.IsFalse(po.Success);
         Assert.IsNull(po.Result);
 }
 private PluginOutcome ExecuteAction(object source, EventArgs args)
 {
     var eaea = (OnExecuteActionEventArgs) args;
     string actionName = eaea.ActionName;
     object[] pars = eaea.Parameters == null ? new object[0] : eaea.Parameters;
     var toret = new PluginOutcome();
     actionName = actionName.ToLowerInvariant();
     switch (actionName)
     {
         case ("movedown"):
             MoveDown(pars[0]);
             toret.Success = true;
             break;
         case ("moveup"):
             MoveUp(pars[0]);
             toret.Success = true;
             break;
         case ("getchildren"):
             toret.Result = GetChildren((long) pars[0]);
             toret.Success = true;
             break;
         case ("gettree"):
             toret.Result = GetTree((long) pars[0]);
             toret.Success = true;
             break;
         case ("getallchildren"):
             toret.Result = GetAllChildren((long) pars[0]);
             toret.Success = true;
             break;
     }
     return toret;
 }