示例#1
0
 public CompareCommandRunner(INugetClient nugetClient,
                             IAssemblyVersionAnalyzer analyzer,
                             AppSettings settings)
 {
     _nugetClient = nugetClient;
     _analyzer    = analyzer;
     _settings    = settings;
 }
        public ModuleLoader(INugetClient nugetClient, IModuleFeedClientFactory moduleFeedClientFactory, ModuleLoaderOptions options)
        {
            if (nugetClient == null)
            {
                throw new ArgumentNullException(nameof(nugetClient));
            }

            if (moduleFeedClientFactory == null)
            {
                throw new ArgumentNullException(nameof(moduleFeedClientFactory));
            }

            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }

            _nugetClient             = nugetClient;
            _moduleFeedClientFactory = moduleFeedClientFactory;
            _options = options;
        }