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

            return(listTeam[0].Id);
        }
Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #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");
        }
Beispiel #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);
        }
Beispiel #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");
        }
Beispiel #9
0
 public ProjectsController()
 {
     _projectAPI = new ProjectAPI();
 }