コード例 #1
0
        private int __GetTeamRandom(int hubId, int projectId)
        {
            ProjectAPI  projectApi = new ProjectAPI();
            List <Team> listTeam   = projectApi.GetHubProjectTeams(hubId, projectId);

            return(listTeam[0].Id);
        }
コード例 #2
0
        public void Test_GetHubProjectList()
        {
            int hubId = __GetHubRandom();

            // Go on with the retrieval of the project list
            ProjectAPI     projectApi  = new ProjectAPI();
            List <Project> listProject = projectApi.GetHubProjectList(hubId);
        }
コード例 #3
0
        private int __GetProjectRandom(int hubId)
        {
            // Go on with the retrieval of the project list
            ProjectAPI     projectApi  = new ProjectAPI();
            List <Project> listProject = projectApi.GetHubProjectList(hubId);

            return(listProject[0].Id);
        }
コード例 #4
0
        public void Test_GetHubProjectTeams()
        {
            int hubId     = __GetHubRandom();
            int projectId = __GetProjectRandom(hubId);

            // Go on with the retrieval of the project list
            ProjectAPI  projectApi = new ProjectAPI();
            List <Team> prjUsers   = projectApi.GetHubProjectTeams(hubId, projectId);
        }
コード例 #5
0
        public void Test_GetHubProjectUsers()
        {
            int hubId     = __GetHubRandom();
            int projectId = __GetProjectRandom(hubId);

            ProjectAPI projectApi = new ProjectAPI();
            // Call the get users from a specific project
            List <ProjectUser> prjUsers = projectApi.GetHubProjectUsers(hubId, projectId);
        }
コード例 #6
0
        public void Test_CreateHubProject()
        {
            int hubId = __GetHubRandom();

            // Go on with the retrieval of the project list / use templateId 0 for success
            ProjectAPI projectApi = new ProjectAPI();

            projectApi.CreateNewProject(hubId, 99, "AutoNewPrj");
        }
コード例 #7
0
        public void Test_GetHubProjectTeamUsers()
        {
            int hubId     = __GetHubRandom();
            int projectId = __GetProjectRandom(hubId);
            int teamId    = __GetTeamRandom(hubId, projectId);

            // Go on with the retrieval of the project list
            ProjectAPI  projectApi = new ProjectAPI();
            List <User> listUser   = projectApi.GetHubProjectTeamUsers(hubId, projectId, teamId);
        }
コード例 #8
0
        public void Test_CreateHubProjectTeam()
        {
            int hubId     = __GetHubRandom();
            int projectId = __GetProjectRandom(hubId);

            // Go on with the retrieval of the project list
            ProjectAPI projectApi = new ProjectAPI();

            projectApi.CreateHubProjectTeam(hubId, projectId, "Ventilation");
        }
コード例 #9
0
 public ProjectsController()
 {
     _projectAPI = new ProjectAPI();
 }