Exemplo n.º 1
0
        public void Get_diagnostic_assessment_should_not_use_archived_tutorials_in_scores()
        {
            // Given
            const int customisationId = 22416;
            const int candidateId     = 118178;
            const int sectionId       = 1955;

            // When
            var result = diagnosticAssessmentDataService.GetDiagnosticAssessment(customisationId, candidateId, sectionId);

            // Then
            result.Should().NotBeNull();
            result !.SectionScore.Should().Be(0);
            result !.MaxSectionScore.Should().Be(2); // Not 3 as uspReturnSectionsForCandCust_V2 returns because
                                                     // it counts archived tutorial 9366
            result !.DiagnosticAttempts.Should().Be(1);
        }
Exemplo n.º 2
0
        public void Get_diagnostic_assessment_should_not_use_tutorials_with_diagStatus_0_in_scores()
        {
            // Given
            const int customisationId = 14579;
            const int candidateId     = 102375;
            const int sectionId       = 135;

            // When
            var result = diagnosticAssessmentDataService.GetDiagnosticAssessment(customisationId, candidateId, sectionId);

            // Then
            result.Should().NotBeNull();
            result !.SectionScore.Should().Be(0);
            result !.MaxSectionScore.Should().Be(42); // Not 44 as uspReturnSectionsForCandCust_V2 returns because
                                                      // it counts tutorial 541 with DiagStatus = 0
            result !.DiagnosticAttempts.Should().Be(0);
        }