public TfsRestProject(TfsJsonProject project) { Name = project.Name; Id = project.Id; Url = project.Url; BuildDefinitions = new List<TfsRestBuildDefinition>(); }
public TfsRestBuildDefinition(TfsJsonBuildDefinition jsonBuildDefinition, TfsJsonProject project, TfsJsonProjectCollection projectCollection) { Id = jsonBuildDefinition.Id.ToString(); Name = jsonBuildDefinition.Name; Parent = projectCollection.Name + "/" + project.Name; }
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(); }