public static void AddWizardStep(string name, ScriptBlock[] forwardAction, ScriptBlock[] backwardAction) { Console.WriteLine("AddWizardStep 00001"); CreateWizard("wizard", null); Console.WriteLine("AddWizardStep 00002"); Wizard wizard = (Wizard)UnitTestOutput.LastOutput[0]; Console.WriteLine("AddWizardStep 00003"); AddUiaWizardStepCommand cmdlet = new AddUiaWizardStepCommand(); Console.WriteLine("AddWizardStep 00004"); cmdlet.InputObject = wizard; cmdlet.Name = name; cmdlet.StepForwardAction = forwardAction; cmdlet.StepBackwardAction = backwardAction; Console.WriteLine("AddWizardStep 00005"); AddWizardStepCommand command = new AddWizardStepCommand(cmdlet); Console.WriteLine("AddWizardStep 00006"); command.Execute(); Console.WriteLine("AddWizardStep 00007"); }
public override void Execute() { AddUiaWizardStepCommand cmdlet = (AddUiaWizardStepCommand)Cmdlet; WizardHelper.AddWizardStep(cmdlet); }