Example #1
0
 public void ExpectedBehavior()
 {
     var command = new HelpCommand();
     var args = new HelpArgs();
     var execute = command.Execute(args);
     StringAssert.Contains("Help", execute);
 }
Example #2
0
 public object Execute(HelpArgs args)
 {
     return(View("Default", new
     {
         version = Assembly.GetExecutingAssembly().GetName().Version.ToString(),
         executable = Path.GetFileName(Assembly.GetExecutingAssembly().Location)
     }));
 }
Example #3
0
        public void ExpectedBehavior()
        {
            var command = new HelpCommand();
            var args    = new HelpArgs();
            var execute = command.Execute(args);

            StringAssert.Contains("Help", execute);
        }
Example #4
0
 public string Execute(HelpArgs args)
 {
     return("Using: Resgrid.Console.exe ...");
 }
Example #5
0
 public IHttpActionResult GetHelp([FromBody] HelpArgs args)
 {
     return(Json(Terminal.Completion.QuickHelpHtml(args.Script, args.Index, args.SelectedCaption)));
 }
Example #6
0
 public object Execute(HelpArgs args)
 {
     return(View("Help"));
 }