/// <summary> /// Initializes a new instance of the <see cref="TeamCityEnvironmentInfo"/> class. /// </summary> /// <param name="environment">The environment.</param> public TeamCityEnvironmentInfo(ICakeEnvironment environment) : base(environment) { Project = new TeamCityProjectInfo(environment); Build = new TeamCityBuildInfo(environment); PullRequest = new TeamCityPullRequestInfo(environment); }
/// <summary> /// Initializes a new instance of the <see cref="TeamCityEnvironmentInfo"/> class. /// </summary> /// <param name="environment">The environment.</param> /// <param name="fileSystem">The file system.</param> public TeamCityEnvironmentInfo(ICakeEnvironment environment, IFileSystem fileSystem) : base(environment) { Project = new TeamCityProjectInfo(environment); Build = new TeamCityBuildInfo(environment, fileSystem); PullRequest = new TeamCityPullRequestInfo(environment, Build); }
/// <summary> /// Initializes a new instance of the <see cref="TeamCityPullRequestInfo"/> class. /// </summary> /// <param name="environment">The environment.</param> /// <param name="buildInfo">The TeamCity build info.</param> public TeamCityPullRequestInfo(ICakeEnvironment environment, TeamCityBuildInfo buildInfo) : base(environment) { _buildInfo = buildInfo; }