Пример #1
0
        public void AssesGradeTest()
        {
            // Arrange: This assignment is real so we will get grades from centris
            // Also it has weight on it so assessment% should change on some students
            var assignmentId = "38344";
            var reason       = "Assignment handin with alot of Weight";
            var ssn          = MockFactory.SSN_OTTAR;
            var studentCheck = _studentService.GetStudentFunc(ssn);
            var risk         = studentCheck.RiskFactor;

            // Act:
            _assessmentService.AssessGrade(assignmentId, reason);
            var studentCheck2 = _studentService.GetStudentFunc(ssn);

            // Assert:
            Assert.AreNotEqual(risk, studentCheck2.RiskFactor);
            Assert.IsFalse(studentCheck2.RiskFactor > 100 && studentCheck2.RiskFactor < 0);
        }