Exemplo n.º 1
0
        public HelpCommand([NotNull] ICommandLineEngine engine, [CanBeNull] IConsole console, [CanBeNull] ResourceManager resourceManager)
        {
            this.engine = engine ?? throw new ArgumentNullException(nameof(engine));

            Console = console ?? new ConsoleProxy();
            this.resourceManager = resourceManager;
        }
Exemplo n.º 2
0
        public HelpCommandSetup WithEngineMock(out Mock <ICommandLineEngine> engineMock)
        {
            commandLineEngine = Setup.MockFor().CommandLineEngine().Done();

            engineMock = Mock.Get(commandLineEngine);

            return(this);
        }
        protected ConsoleApplicationWith([NotNull] ICommandLineEngine commandLineEngine)
        {
            if (commandLineEngine == null)
            {
                throw new ArgumentNullException(nameof(commandLineEngine));
            }

            CommandLineEngine = commandLineEngine;
        }
Exemplo n.º 4
0
        public TestApplication([NotNull] ICommandLineEngine commandLineEngine, [NotNull] IApplicationVerification application)
            : base(commandLineEngine)
        {
            if (application == null)
            {
                throw new ArgumentNullException(nameof(application));
            }

            this.application = application;
        }
Exemplo n.º 5
0
        public HelpCommand Done()
        {
            if (commandLineEngine == null)
            {
                commandLineEngine = new Mock <ICommandLineEngine>().Object;
            }

            if (console == null)
            {
                console = new Mock <IConsole>().Object;
            }

            return(new HelpCommand(commandLineEngine, console, null));
        }
Exemplo n.º 6
0
 public DeleteMeApplication(ICommandLineEngine commandLineEngine)
     : base(commandLineEngine)
 {
 }
Exemplo n.º 7
0
 public AppAndParameters(ICommandLineEngine commandLineEngine)
     : base(commandLineEngine)
 {
 }
Exemplo n.º 8
0
 public MyProgramLogic(ICommandLineEngine commandLineEngine)
     : base(commandLineEngine)
 {
 }
Exemplo n.º 9
0
 public Program(ICommandLineEngine commandLineEngine)
     : base(commandLineEngine)
 {
 }
Exemplo n.º 10
0
 public XCopyApplication(ICommandLineEngine commandLineEngine)
     : base(commandLineEngine)
 {
 }
Exemplo n.º 11
0
 protected ConsoleApplication([NotNull] ICommandLineEngine commandLineEngine)
 {
     CommandLineEngine = commandLineEngine ?? throw new ArgumentNullException(nameof(commandLineEngine));
     CommandLineEngine.UnhandledCommandLineArgument += OnUnhandledCommandLineArgument;
 }
 public ConsoloversApplication1Application(ICommandLineEngine commandLineEngine)
     : base(commandLineEngine)
 {
 }
Exemplo n.º 13
0
 public TheApplication(ICommandLineEngine commandLineEngine)
     : base(commandLineEngine)
 {
 }