Exemplo n.º 1
0
 public ToolSearchCommand(
     ParseResult result,
     INugetToolSearchApiRequest nugetToolSearchApiRequest = null
     )
     : base(result)
 {
     _nugetToolSearchApiRequest = nugetToolSearchApiRequest ?? new NugetToolSearchApiRequest();
     _searchResultPrinter       = new SearchResultPrinter(Reporter.Output);
 }
Exemplo n.º 2
0
 public ToolSearchCommand(
     AppliedOption options,
     ParseResult result,
     INugetToolSearchApiRequest nugetToolSearchApiRequest = null
     )
     : base(result)
 {
     _options = options ?? throw new ArgumentNullException(nameof(options));
     _nugetToolSearchApiRequest = nugetToolSearchApiRequest ?? new NugetToolSearchApiRequest();
     _searchResultPrinter       = new SearchResultPrinter(Reporter.Output);
 }