public CloneRoutine(ISolutionCloner solutionCloner, ICommandLineArgumentParser argumentParser, IConsole console, ITranslator translator) : base(argumentParser, console, translator) { this.solutionCloner = solutionCloner; solutionCloner.CurrentPathChanged += solutionCloner_CurrentPathChanged; }
public CliService(ICommandLineArgumentParser commandLineArgumentParser, ICommandSelector commandSelector, IHybridServiceScopeFactory serviceScopeFactory) { _commandLineArgumentParser = commandLineArgumentParser; _commandSelector = commandSelector; _serviceScopeFactory = serviceScopeFactory; Logger = NullLogger <CliService> .Instance;//初始化时,是空的,如果不通过属性注入,则没有日志 }
public Program(IConsole console, ITranslator translator, ICommandLineArgumentParser argumentParser, ISubRoutineLocator subRoutineLocator) { this.console = console; this.translator = translator; this.argumentParser = argumentParser; this.subRoutineLocator = subRoutineLocator; }
public CliService( ICommandLineArgumentParser commandLineArgumentParser, ICommandSelector commandSelector, IHybridServiceScopeFactory serviceScopeFactory) { CommandLineArgumentParser = commandLineArgumentParser; CommandSelector = commandSelector; ServiceScopeFactory = serviceScopeFactory; Logger = NullLogger <CliService> .Instance; }
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(); }
public CliService( ICommandLineArgumentParser commandLineArgumentParser, ICommandSelector commandSelector, IServiceScopeFactory serviceScopeFactory, NuGetService nugetService) { CommandLineArgumentParser = commandLineArgumentParser; CommandSelector = commandSelector; ServiceScopeFactory = serviceScopeFactory; NuGetService = nugetService; Logger = NullLogger <CliService> .Instance; }
public HelpRoutine(ICommandLineArgumentParser argumentParser, IConsole console, ITranslator translator) : base(argumentParser, console, translator) { }
public TypedCommandLineArgumentParser(ICommandLineArgumentParser <IDictionary <string, string> > baseParser) { _baseParser = baseParser; }
public ModalGuiRoutine(IProcess process, ICommandLineArgumentParser argumentParser, IConsole console, ITranslator translator) : base(argumentParser, console, translator) { this.process = process; }
protected SubRoutineBase(ICommandLineArgumentParser argumentParser, IConsole console, ITranslator translator) { ArgumentParser = argumentParser; Console = console; Translator = translator; }
public App(ICommandLineArgumentParser argumentParser) { this.argumentParser = argumentParser; Dispatcher.UnhandledException += Dispatcher_UnhandledException; }
public SettingsRoutine(ICommandLineArgumentParser argumentParser, IConsole console, ITranslator translator) : base(argumentParser, console, translator) { }
public void Setup() { baseParser = Substitute.For<ICommandLineArgumentParser<IDictionary<string, string>>>(); parser = new TypedCommandLineArgumentParser(baseParser); }
public CommandLineArgumentParser_Tests() { _commandLineArgumentParser = GetRequiredService <ICommandLineArgumentParser>(); }
public UninstallContextMenuRoutine(IContextMenuInstaller installer, ICommandLineArgumentParser argumentParser, IConsole console, ITranslator translator) : base(argumentParser, console, translator) { this.installer = installer; }
public void Setup() { _baseParser = Substitute.For <ICommandLineArgumentParser <IDictionary <string, string> > >(); _parser = new TypedCommandLineArgumentParser(_baseParser); }