public TfsRestProjectCollection(TfsJsonProjectCollection projectCollection)
 {
     Name     = projectCollection.Name;
     Id       = projectCollection.Id;
     Url      = projectCollection.Url;
     Projects = new List <TfsRestProject>();
 }
        private async Task <List <TfsRestBuildDefinition> > GetBuildDefinitions(TfsConnectionDetails connection, TfsJsonProjectCollection projectCollection, TfsJsonProject project)
        {
            var tfsJsonBuildDefinitions = await _tfsJsonService.GetBuildDefinitions(connection, projectCollection.Name, project.Name);

            return(tfsJsonBuildDefinitions.Select(i => new TfsRestBuildDefinition(i, project, projectCollection)).ToList());
        }
 public TfsRestBuildDefinition(TfsJsonBuildDefinition jsonBuildDefinition, TfsJsonProject project, TfsJsonProjectCollection projectCollection)
 {
     Id     = jsonBuildDefinition.Id.ToString();
     Name   = jsonBuildDefinition.Name;
     Parent = projectCollection.Name + "/" + project.Name;
 }