Example #1
0
        public void test_21_getReportResults_invalid_input()
        {
            String exception = "";

            try
            {
                IQueryable <ProjectGroup> b = d.getReportResults(-1);
            }
            catch (Exception e)
            {
                exception = e.ToString();
            }
            Assert.IsTrue(exception.Contains("ArgumentOutOfRange"));
        }
Example #2
0
        private void FillAllIndividualGrades()
        {
            Grades = new Dictionary <string, int[]>();

            foreach (Project p in AllProjects)
            {
                if (student.getReportResults(p.id).Count() > 0)
                {
                    int pid;
                    pid = p.id;
                    string pnaam;
                    pnaam = p.name;
                    int pcijfer;
                    pcijfer = (int)student.getReportResults(pid).First().group_end_grade;
                    int icijfer;
                    icijfer = student.getEndGradeIndividual(StudentNumber, pid);
                    Grades.Add(pnaam, new int[2] {
                        pcijfer, icijfer
                    });
                }
            }
            int i = 0;
        }