private AssesmentAnalysisReportTO GetAnalysis()
        {
            AssesmentAnalysisReportTO analysis = new AssesmentAnalysisReportTO();

            analysis.RoleResult = new AssesmentRoleResultTO()
            {
                Title = "DESARROLLADOR JUNIOR", Points = 100, PossiblePoints = 200
            };

            List <AssesmentRoleLevelTO> levels = new List <AssesmentRoleLevelTO>();

            levels.Add(new AssesmentRoleLevelTO()
            {
                Name = "BAJA CAPACIDAD", Description = "No cuenta con los conocimientos para el desarrollo de software."
            });
            levels.Add(new AssesmentRoleLevelTO()
            {
                Name = "JUNIOR", Description = "No debería ejecutar proyectos sin ayuda de expertos, no cuenta con el conocimiento ni experiencia necesarios para implementar soluciones complejas."
            });
            levels.Add(new AssesmentRoleLevelTO()
            {
                Name = "MIDDLE", Description = "Puede ejecutar proyectos sin ayuda de expertos"
            });
            levels.Add(new AssesmentRoleLevelTO()
            {
                Name = "SENIOR", Description = "Puede ejecutar proyectos solo, cuenta con el conocimiento suficiente."
            });
            analysis.RoleLevels = levels;

            analysis.Candidates = GetAssesmentCandidates().OrderBy(x => x.Points).ToList();

            return(analysis);
        }
Example #2
0
        private AssesmentAnalysisReportTO GetAnalysis()
        {
            AssesmentAnalysisReportTO analysis = AssesmentAnalysisModel.GetAssesmentAnalysis(id);

            //Set Senority based on points
            if (analysis.RoleLevels != null && analysis.RoleLevels.Count > 0)
            {
                string roleTitle = analysis.RoleLevels[0].Name;
                foreach (var item in analysis.RoleLevels)
                {
                    if (item.Points <= analysis.RoleResult.Points)
                    {
                        roleTitle = item.Name;
                    }
                }
                analysis.RoleResult.Title = analysis.RoleResult.Title + " " + roleTitle;
            }

            if (info.Type == AssementType.Candidate)
            {
                analysis.Candidates = AssesmentAnalysisModel.GetAssesmentCandidates(id).OrderByDescending(x => x.Points).ToList();
            }

            return(analysis);
        }
Example #3
0
        public static AssesmentAnalysisReportTO GetAssesmentAnalysis(int assesmentID)
        {
            AssesmentAnalysisReportTO analysis = new AssesmentAnalysisReportTO();

            analysis.RoleResult = GetRoleResult(assesmentID);
            analysis.RoleLevels = GetRoleLevels(assesmentID).OrderBy(x => x.Points).ToList();

            return(analysis);
        }