public void SetUp()
        {
            theFactory = new CommandFactory();
            theFactory.RegisterCommands(GetType().Assembly);

            theInput = new DumpUsagesInput
            {
                ApplicationName = "ripple",
                Location        = "somewhere.xml",
                Commands        = theFactory
            };

            theCommand = new DumpUsagesCommand();

            report = theCommand.BuildReport(theInput);

            commandReport = report.Commands.Single(x => x.Name == "crazy");
        }
示例#2
0
        private CommandRun dumpUsagesRun(Queue<string> queue)
        {
            var command = new DumpUsagesCommand();
            var input = command.Usages.BuildInput(queue).As<DumpUsagesInput>();
            input.Commands = this;

            return new CommandRun
            {
                Command = command,
                Input = input
            };
        }