/// <summary> /// Internal constructor for testing /// </summary> public TeamBuildPreProcessor(ISonarQubeServerFactory serverFactory, ITargetsInstaller targetInstaller) { if (serverFactory == null) { throw new ArgumentNullException("serverFactory"); } if (targetInstaller == null) { throw new ArgumentNullException("targetInstaller"); } this.serverFactory = serverFactory; this.targetInstaller = targetInstaller; }
/// <summary> /// Internal constructor for testing /// </summary> public TeamBuildPreProcessor(ILogger logger, ISonarQubeServerFactory serverFactory, ITargetsInstaller targetInstaller, IAnalyzerProvider analyzerInstaller) { if (logger == null) { throw new ArgumentNullException("logger"); } if (serverFactory == null) { throw new ArgumentNullException("serverFactory"); } if (targetInstaller == null) { throw new ArgumentNullException("targetInstaller"); } if (analyzerInstaller == null) { throw new ArgumentNullException("analyzerProvider"); } this.logger = logger; this.serverFactory = serverFactory; this.targetInstaller = targetInstaller; this.analyzerProvider = analyzerInstaller; }