Example #1
0
        public FormMain()
        {
            this.InitializeComponent();

            this.teamCityClient = new TeamCityClient(this);
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="TeamCityWrapperClient"/> class.
 /// </summary>
 /// <param name="credentials">The build server's credentials.</param>
 /// <param name="vcsClient">The VCS client. The v6.5 and v7.0 versions of TeamCity's REST API doesn't provide the username for the revision that triggered a build, and the request to get changes for a build is always empty. </param>
 public TeamCityWrapperClient(TeamCityCredentials credentials, IVcsClient vcsClient)
 {
     this.buildServerClient = new TeamCityClient(credentials.Url, credentials.Username, credentials.Password);
     this.vcsClient = vcsClient;
 }