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 <TeamCityChange> GetChange(long ChangeId)
 {
     try
     {
         using (var client = GetClient())
         {
             var changeTask = client.GetStringAsync(_urls.GetChange(ChangeId));
             var cMsg       = await changeTask;
             var cData      = TeamCityChange.FromJson(cMsg);
             return(cData);
         }
     }
     catch (Exception ex)
     {
         _logger.LogError(ex, "Unable to retrieve Change Details for Change Id: {0}", ChangeId);
         throw;
     }
 }