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 <TeamCityProject> GetProjectData(string ProjectNameId)
 {
     try
     {
         using (var client = GetClient())
         {
             var projectTask = client.GetStringAsync(_urls.GetProjectByNameId(ProjectNameId));
             var pMsg        = await projectTask;
             var pData       = TeamCityProject.FromJson(pMsg);
             return(pData);
         }
     }
     catch (Exception ex)
     {
         _logger.LogError(ex, "Unable to retrieve project data for Project: {0}", ProjectNameId);
         throw;
     }
 }