/// <summary>
        /// Initializes a new instance of the <see cref="TeamCityProvider"/> class.
        /// </summary>
        /// <param name="environment">The cake environment.</param>
        /// <param name="writer">The build system service message writer.</param>
        public TeamCityProvider(ICakeEnvironment environment, IBuildSystemServiceMessageWriter writer)
        {
            _environment = environment ?? throw new ArgumentNullException(nameof(environment));
            _writer = writer ?? throw new ArgumentNullException(nameof(writer));

            Environment = new TeamCityEnvironmentInfo(environment);
        }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AzurePipelinesCommands"/> class.
 /// </summary>
 /// <param name="environment">The environment.</param>
 /// <param name="writer">The build system service message writer.</param>
 public AzurePipelinesCommands(ICakeEnvironment environment, IBuildSystemServiceMessageWriter writer)
 {
     _environment = environment ?? throw new ArgumentNullException(nameof(environment));
     _writer      = writer ?? throw new ArgumentNullException(nameof(writer));
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TFBuildProvider"/> class.
 /// </summary>
 /// <param name="environment">The environment.</param>
 /// <param name="writer">The build system service message writer.</param>
 public TFBuildProvider(ICakeEnvironment environment, IBuildSystemServiceMessageWriter writer)
 {
     _environment = environment ?? throw new ArgumentNullException(nameof(environment));
     Environment  = new TFBuildEnvironmentInfo(environment);
     Commands     = new TFBuildCommands(environment, writer);
 }