/// <summary> /// Feed project properties /// </summary> /// <remarks>keep in the source code for futur use</remarks> /// <param name="tpc"></param> /// <param name="teamProjectNodes"></param> private static void FeedProjectPropertiesData(TfsTeamProjectCollection tpc, string projectUri) { ICommonStructureService css = tpc.GetService <ICommonStructureService3>(); string projectName2; int templateId; string state; ProjectProperty[] properties; css.GetProjectProperties(projectUri, out projectName2, out state, out templateId, out properties); ProjectInfo projectInfo = css.GetProject(projectUri); NodeInfo[] nodeInfo = css.ListStructures(projectUri); }
public void GetProject() { // need TFS_ envvars for this test if (String.IsNullOrEmpty(tfsUrl)) { return; } TeamFoundationServer tfs = new TeamFoundationServer(tfsUrl, credentials); ICommonStructureService css = (ICommonStructureService)tfs.GetService(typeof(ICommonStructureService)); ProjectInfo p1 = css.GetProjectFromName(Environment.GetEnvironmentVariable("TFS_PROJECT")); ProjectInfo p2 = css.GetProject(p1.Uri); Assert.IsNotNull(p2.Name); Assert.IsNotNull(p2.Status); Assert.IsNotNull(p2.Uri); }