Exemplo n.º 1
0
        public void AssesViewTest()
        {
            // Arrange: This function takes in ssn
            var ssn          = MockFactory.SSN_OTTAR;
            var studentCheck = _studentService.GetStudentFunc(ssn);
            var risk         = studentCheck.RiskFactor;

            // Act:
            _assessmentService.AssessView(ssn);
            var studentCheck2 = _studentService.GetStudentFunc(ssn);

            // Assert: Riskfactor should have lowered by 1 since View is set to value 1 .. app.cfg
            Assert.AreEqual(risk, studentCheck2.RiskFactor + 1);
            Assert.IsFalse(studentCheck2.RiskFactor > 100 && studentCheck2.RiskFactor < 0);
        }