Ejemplo n.º 1
0
        public CloneRoutine(ISolutionCloner solutionCloner, ICommandLineArgumentParser argumentParser, IConsole console, ITranslator translator)
            : base(argumentParser, console, translator)
        {
            this.solutionCloner = solutionCloner;

            solutionCloner.CurrentPathChanged += solutionCloner_CurrentPathChanged;
        }
Ejemplo n.º 2
0
        public CloneRoutine(ISolutionCloner solutionCloner, ICommandLineArgumentParser argumentParser, IConsole console, ITranslator translator)
            : base(argumentParser, console, translator)
        {
            this.solutionCloner = solutionCloner;

            solutionCloner.CurrentPathChanged += solutionCloner_CurrentPathChanged;
        }
Ejemplo n.º 3
0
 public CliService(ICommandLineArgumentParser commandLineArgumentParser, ICommandSelector commandSelector, IHybridServiceScopeFactory serviceScopeFactory)
 {
     _commandLineArgumentParser = commandLineArgumentParser;
     _commandSelector           = commandSelector;
     _serviceScopeFactory       = serviceScopeFactory;
     Logger = NullLogger <CliService> .Instance;//初始化时,是空的,如果不通过属性注入,则没有日志
 }
Ejemplo n.º 4
0
 public Program(IConsole console, ITranslator translator, ICommandLineArgumentParser argumentParser, ISubRoutineLocator subRoutineLocator)
 {
     this.console = console;
     this.translator = translator;
     this.argumentParser = argumentParser;
     this.subRoutineLocator = subRoutineLocator;
 }
Ejemplo n.º 5
0
        public CliService(
            ICommandLineArgumentParser commandLineArgumentParser,
            ICommandSelector commandSelector,
            IHybridServiceScopeFactory serviceScopeFactory)
        {
            CommandLineArgumentParser = commandLineArgumentParser;
            CommandSelector           = commandSelector;
            ServiceScopeFactory       = serviceScopeFactory;

            Logger = NullLogger <CliService> .Instance;
        }
Ejemplo n.º 6
0
        public void SetUp()
        {
            console = Substitute.For<IConsole>();
            translator = Substitute.For<ITranslator>();
            translator.Translate("NoRoutineMatchMessage").Returns("foo");
            argumentParser = Substitute.For<ICommandLineArgumentParser>();
            subRoutineLocator = Substitute.For<ISubRoutineLocator>();

            program = new Program(console, translator, argumentParser, subRoutineLocator);
            arguments = new List<string> { "foo", "bar" };

            SetUpLanguage();
        }
Ejemplo n.º 7
0
        public CliService(
            ICommandLineArgumentParser commandLineArgumentParser,
            ICommandSelector commandSelector,
            IServiceScopeFactory serviceScopeFactory,
            NuGetService nugetService)
        {
            CommandLineArgumentParser = commandLineArgumentParser;
            CommandSelector           = commandSelector;
            ServiceScopeFactory       = serviceScopeFactory;
            NuGetService = nugetService;

            Logger = NullLogger <CliService> .Instance;
        }
Ejemplo n.º 8
0
 public HelpRoutine(ICommandLineArgumentParser argumentParser, IConsole console, ITranslator translator)
     : base(argumentParser, console, translator)
 {
 }
Ejemplo n.º 9
0
 public TypedCommandLineArgumentParser(ICommandLineArgumentParser <IDictionary <string, string> > baseParser)
 {
     _baseParser = baseParser;
 }
Ejemplo n.º 10
0
 public ModalGuiRoutine(IProcess process, ICommandLineArgumentParser argumentParser, IConsole console, ITranslator translator)
     : base(argumentParser, console, translator)
 {
     this.process = process;
 }
Ejemplo n.º 11
0
 protected SubRoutineBase(ICommandLineArgumentParser argumentParser, IConsole console, ITranslator translator)
 {
     ArgumentParser = argumentParser;
     Console        = console;
     Translator     = translator;
 }
Ejemplo n.º 12
0
 public App(ICommandLineArgumentParser argumentParser)
 {
     this.argumentParser = argumentParser;
     Dispatcher.UnhandledException += Dispatcher_UnhandledException;
 }
Ejemplo n.º 13
0
 public SettingsRoutine(ICommandLineArgumentParser argumentParser, IConsole console, ITranslator translator)
     : base(argumentParser, console, translator)
 {
 }
Ejemplo n.º 14
0
 protected SubRoutineBase(ICommandLineArgumentParser argumentParser, IConsole console, ITranslator translator)
 {
     ArgumentParser = argumentParser;
     Console = console;
     Translator = translator;
 }
 public void Setup()
 {
     baseParser = Substitute.For<ICommandLineArgumentParser<IDictionary<string, string>>>();
     parser = new TypedCommandLineArgumentParser(baseParser);
 }
Ejemplo n.º 16
0
 public CommandLineArgumentParser_Tests()
 {
     _commandLineArgumentParser = GetRequiredService <ICommandLineArgumentParser>();
 }
 public UninstallContextMenuRoutine(IContextMenuInstaller installer, ICommandLineArgumentParser argumentParser, IConsole console, ITranslator translator)
     : base(argumentParser, console, translator)
 {
     this.installer = installer;
 }
Ejemplo n.º 18
0
 public App(ICommandLineArgumentParser argumentParser)
 {
     this.argumentParser            = argumentParser;
     Dispatcher.UnhandledException += Dispatcher_UnhandledException;
 }
Ejemplo n.º 19
0
 public UninstallContextMenuRoutine(IContextMenuInstaller installer, ICommandLineArgumentParser argumentParser, IConsole console, ITranslator translator)
     : base(argumentParser, console, translator)
 {
     this.installer = installer;
 }
Ejemplo n.º 20
0
 public ModalGuiRoutine(IProcess process, ICommandLineArgumentParser argumentParser, IConsole console, ITranslator translator)
     : base(argumentParser, console, translator)
 {
     this.process = process;
 }
Ejemplo n.º 21
0
 public void Setup()
 {
     _baseParser = Substitute.For <ICommandLineArgumentParser <IDictionary <string, string> > >();
     _parser     = new TypedCommandLineArgumentParser(_baseParser);
 }