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