/// <summary> /// Initializes a new instance of the <see cref="TravisCIProvider"/> class. /// </summary> /// <param name="environment">The environment.</param> /// <param name="log">The log.</param> public TravisCIProvider(ICakeEnvironment environment, ICakeLog log) { if (environment == null) { throw new ArgumentNullException("environment"); } _environment = environment; _log = log; _environmentInfo = new TravisCIEnvironmentInfo(environment); }
/// <summary> /// Initializes a new instance of the <see cref="TravisCIProvider"/> class. /// </summary> /// <param name="environment">The environment.</param> /// <param name="writer">The log.</param> public TravisCIProvider(ICakeEnvironment environment, IBuildSystemServiceMessageWriter writer) { _environment = environment ?? throw new ArgumentNullException(nameof(environment)); _writer = writer ?? throw new ArgumentNullException(nameof(writer)); Environment = new TravisCIEnvironmentInfo(environment); }