Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BitriseProvider"/> class.
 /// </summary>
 /// <param name="environment">The environment.</param>
 /// <param name="processRunner">The process runner.</param>
 public BitriseProvider(ICakeEnvironment environment, IProcessRunner processRunner)
 {
     if (environment == null)
     {
         throw new ArgumentNullException(nameof(environment));
     }
     if (processRunner == null)
     {
         throw new ArgumentNullException(nameof(processRunner));
     }
     _environment   = environment;
     _processRunner = processRunner;
     Environment    = new BitriseEnvironmentInfo(_environment);
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BitriseProvider"/> class.
 /// </summary>
 /// <param name="environment">The environment.</param>
 public BitriseProvider(ICakeEnvironment environment)
 {
     _environment        = environment;
     _bitriseEnvironment = new BitriseEnvironmentInfo(_environment);
 }