public async Task GetTestData(string projectName, string buildType, int buildId, int changeId)
        {
            using (var client = GetClient())
            {
                var projectTask = client.GetStringAsync(_urls.GetProjectByNameId(projectName));
                var pMsg        = await projectTask;
                var pData       = TeamCityProject.FromJson(pMsg);


                var buildsTask = client.GetStringAsync(_urls.GetBuilds(buildType));
                var bsMsg      = await buildsTask;
                var bsData     = TeamCityBuilds.FromJson(bsMsg);

                var buildTask = client.GetStringAsync(_urls.GetBuild(buildId));
                var bMsg      = await buildTask;
                var bData     = TeamCityBuild.FromJson(bMsg);


                var changesTask = client.GetStringAsync(_urls.GetChanges(buildId));
                var csMsg       = await changesTask;
                var csData      = TeamCityChanges.FromJson(csMsg);

                var changeTask = client.GetStringAsync(_urls.GetChange(changeId));
                var cMsg       = await changeTask;
                var cData      = TeamCityChange.FromJson(cMsg);
            }
        }
 public async Task <TeamCityBuilds> GetBuilds(string BuildType)
 {
     try
     {
         using (var client = GetClient())
         {
             var buildsTask = client.GetStringAsync(_urls.GetBuilds(BuildType));
             var bsMsg      = await buildsTask;
             var bsData     = TeamCityBuilds.FromJson(bsMsg);
             return(bsData);
         }
     }
     catch (Exception ex)
     {
         _logger.LogError(ex, "Unable to retrieve builds for Build Type: {0}", BuildType);
         throw;
     }
 }