Exemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="JenkinsProvider"/> class.
        /// </summary>
        /// <param name="environment">The environment.</param>
        public JenkinsProvider(ICakeEnvironment environment)
        {
            if (environment == null)
            {
                throw new ArgumentNullException("environment");
            }

            _environment        = environment;
            _jenkinsEnvironment = new JenkinsEnvironmentInfo(_environment);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="JenkinsProvider"/> class.
 /// </summary>
 /// <param name="environment">The environment.</param>
 public JenkinsProvider(ICakeEnvironment environment)
 {
     _environment = environment ?? throw new ArgumentNullException(nameof(environment));
     Environment  = new JenkinsEnvironmentInfo(_environment);
 }