예제 #1
0
        public CloneRoutine(ISolutionCloner solutionCloner, ICommandLineArgumentParser argumentParser, IConsole console, ITranslator translator)
            : base(argumentParser, console, translator)
        {
            this.solutionCloner = solutionCloner;

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

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

            Logger = NullLogger <CliService> .Instance;
        }
예제 #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();
        }
예제 #7
0
        public CliService(
            ICommandLineArgumentParser commandLineArgumentParser,
            ICommandSelector commandSelector,
            IServiceScopeFactory serviceScopeFactory,
            NuGetService nugetService)
        {
            CommandLineArgumentParser = commandLineArgumentParser;
            CommandSelector           = commandSelector;
            ServiceScopeFactory       = serviceScopeFactory;
            NuGetService = nugetService;

            Logger = NullLogger <CliService> .Instance;
        }
예제 #8
0
 public HelpRoutine(ICommandLineArgumentParser argumentParser, IConsole console, ITranslator translator)
     : base(argumentParser, console, translator)
 {
 }
예제 #9
0
 public TypedCommandLineArgumentParser(ICommandLineArgumentParser <IDictionary <string, string> > baseParser)
 {
     _baseParser = baseParser;
 }
예제 #10
0
 public ModalGuiRoutine(IProcess process, ICommandLineArgumentParser argumentParser, IConsole console, ITranslator translator)
     : base(argumentParser, console, translator)
 {
     this.process = process;
 }
예제 #11
0
 protected SubRoutineBase(ICommandLineArgumentParser argumentParser, IConsole console, ITranslator translator)
 {
     ArgumentParser = argumentParser;
     Console        = console;
     Translator     = translator;
 }
예제 #12
0
 public App(ICommandLineArgumentParser argumentParser)
 {
     this.argumentParser = argumentParser;
     Dispatcher.UnhandledException += Dispatcher_UnhandledException;
 }
예제 #13
0
 public SettingsRoutine(ICommandLineArgumentParser argumentParser, IConsole console, ITranslator translator)
     : base(argumentParser, console, translator)
 {
 }
예제 #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);
 }
예제 #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;
 }
예제 #18
0
 public App(ICommandLineArgumentParser argumentParser)
 {
     this.argumentParser            = argumentParser;
     Dispatcher.UnhandledException += Dispatcher_UnhandledException;
 }
예제 #19
0
 public UninstallContextMenuRoutine(IContextMenuInstaller installer, ICommandLineArgumentParser argumentParser, IConsole console, ITranslator translator)
     : base(argumentParser, console, translator)
 {
     this.installer = installer;
 }
예제 #20
0
 public ModalGuiRoutine(IProcess process, ICommandLineArgumentParser argumentParser, IConsole console, ITranslator translator)
     : base(argumentParser, console, translator)
 {
     this.process = process;
 }
예제 #21
0
 public void Setup()
 {
     _baseParser = Substitute.For <ICommandLineArgumentParser <IDictionary <string, string> > >();
     _parser     = new TypedCommandLineArgumentParser(_baseParser);
 }