public void Get_tutorial_information_has_other_items_in_section_if_another_tutorial_has_diagnostic() { using (new TransactionScope()) { // Given const int customisationId = 5468; const int candidateId = 94705; const int sectionId = 102; const int tutorialId = 316; // Remove diagnostic from this tutorial tutorialContentTestHelper.UpdateDiagnosticStatus(tutorialId, customisationId, 0); // Make other tutorials in this section inaccessible, but they still have a diagnostic status 1 tutorialContentTestHelper.UpdateTutorialStatus(317, customisationId, 0); tutorialContentTestHelper.UpdateTutorialStatus(318, customisationId, 0); // When var tutorial = tutorialContentDataService.GetTutorialInformation(candidateId, customisationId, sectionId, tutorialId); // Then tutorial.Should().NotBeNull(); tutorial !.OtherItemsInSectionExist.Should().BeTrue(); } }
public void Get_post_learning_assessment_has_no_other_items_in_section_if_tutorials_are_archived() { using (new TransactionScope()) { // Given const int candidateId = 210962; const int customisationId = 27858; const int sectionId = 3071; // Set a tutorial to have status 0, already wih diagnostic status of 0. // At least one tutorial (even with both statuses as 0) is required for the // post-learning assessment to be valid tutorialContentTestHelper.UpdateTutorialStatus(12817, customisationId, 0); // Archive the rest of the section's tutorials (with status 1) tutorialContentTestHelper.ArchiveTutorial(12818); tutorialContentTestHelper.ArchiveTutorial(12819); // When var result = postLearningAssessmentService.GetPostLearningAssessment(customisationId, candidateId, sectionId); // Then result.Should().NotBeNull(); result !.OtherItemsInSectionExist.Should().BeFalse(); } }
public void Get_diagnostic_assessment_has_no_other_items_in_section_if_has_no_post_learning_path_but_is_not_assessed() { // Given const int candidateId = 145881; const int customisationId = 13335; const int sectionId = 174; // When var result = diagnosticAssessmentDataService.GetDiagnosticAssessment(customisationId, candidateId, sectionId); // Then result.Should().NotBeNull(); result !.OtherItemsInSectionExist.Should().BeFalse(); }
public void Get_diagnostic_assessment_has_other_items_in_section_if_just_has_post_learning_assessment() { // Given const int candidateId = 270363; const int customisationId = 23666; const int sectionId = 201; // When var result = diagnosticAssessmentDataService.GetDiagnosticAssessment(customisationId, candidateId, sectionId); // Then result.Should().NotBeNull(); result !.OtherItemsInSectionExist.Should().BeTrue(); }
public void Get_post_learning_assessment_should_have_other_items_in_section_if_a_tutorial_has_status_1() { // Given const int candidateId = 86972; const int customisationId = 26655; const int sectionId = 2739; // When var result = postLearningAssessmentService.GetPostLearningAssessment(customisationId, candidateId, sectionId); // Then result.Should().NotBeNull(); result !.OtherItemsInSectionExist.Should().BeTrue(); }
public void Get_diagnostic_learning_assessment_should_have_other_items_in_section_if_a_tutorial_has_status_1() { // Given const int candidateId = 286695; const int customisationId = 26254; const int sectionId = 2479; // When var result = diagnosticAssessmentDataService.GetDiagnosticAssessment(customisationId, candidateId, sectionId); // Then result.Should().NotBeNull(); result !.OtherItemsInSectionExist.Should().BeTrue(); }
public void Get_post_learning_assessment_has_no_other_items_in_section() { // Given const int candidateId = 274374; const int customisationId = 22709; const int sectionId = 2002; // When var result = postLearningAssessmentService.GetPostLearningAssessment(customisationId, candidateId, sectionId); // Then result.Should().NotBeNull(); result !.OtherItemsInSectionExist.Should().BeFalse(); }
public void Get_diagnostic_assessment_has_no_other_items_in_section() { // Given const int candidateId = 145944; const int customisationId = 26468; const int sectionId = 2548; // When var result = diagnosticAssessmentDataService.GetDiagnosticAssessment(customisationId, candidateId, sectionId); // Then result.Should().NotBeNull(); result !.OtherItemsInSectionExist.Should().BeFalse(); }
public void Get_tutorial_information_has_no_other_items_in_section() { // Given const int candidateId = 272596; const int customisationId = 23048; const int sectionId = 2027; const int tutorialId = 9526; // When var tutorial = tutorialContentDataService.GetTutorialInformation(candidateId, customisationId, sectionId, tutorialId); // Then tutorial.Should().NotBeNull(); tutorial !.OtherItemsInSectionExist.Should().BeFalse(); }
public void Get_tutorial_information_has_other_items_in_section_if_single_tutorial_just_has_section_consolidation() { // Given const int candidateId = 267014; const int customisationId = 21669; const int sectionId = 1802; const int tutorialId = 8593; // When var tutorial = tutorialContentDataService.GetTutorialInformation(candidateId, customisationId, sectionId, tutorialId); // Then tutorial.Should().NotBeNull(); tutorial !.OtherItemsInSectionExist.Should().BeTrue(); }
public void Get_tutorial_information_has_other_items_in_section_if_single_tutorial_just_has_post_learning() { // Given const int candidateId = 245614; const int customisationId = 24001; const int sectionId = 2094; const int tutorialId = 9705; // When var tutorial = tutorialContentDataService.GetTutorialInformation(candidateId, customisationId, sectionId, tutorialId); // Then tutorial.Should().NotBeNull(); tutorial !.OtherItemsInSectionExist.Should().BeTrue(); }
public void Get_tutorial_information_has_other_items_in_section_if_single_tutorial_just_has_diagnostic() { // Given const int candidateId = 210962; const int customisationId = 14961; const int sectionId = 350; const int tutorialId = 1360; // When var tutorial = tutorialContentDataService.GetTutorialInformation(candidateId, customisationId, sectionId, tutorialId); // Then tutorial.Should().NotBeNull(); tutorial !.OtherItemsInSectionExist.Should().BeTrue(); }
public void Get_tutorial_information_should_have_other_items_in_section_if_another_tutorial_has_status_1() { // Given const int candidateId = 1; const int customisationId = 1379; const int sectionId = 74; const int tutorialId = 52; // When var tutorial = tutorialContentDataService.GetTutorialInformation(candidateId, customisationId, sectionId, tutorialId); // Then tutorial.Should().NotBeNull(); tutorial !.OtherItemsInSectionExist.Should().BeTrue(); }
public void Get_diagnostic_assessment_has_other_items_in_section_if_just_has_section_consolidation() { using (new TransactionScope()) { // Given const int candidateId = 145944; const int customisationId = 26468; const int sectionId = 2549; sectionContentTestHelper.UpdateConsolidationPath(sectionId, "some/consolidation/path.pdf"); // When var result = diagnosticAssessmentDataService.GetDiagnosticAssessment(customisationId, candidateId, sectionId); // Then result.Should().NotBeNull(); result !.OtherItemsInSectionExist.Should().BeTrue(); } }
public void Get_post_learning_assessment_has_other_items_in_section_if_just_has_section_consolidation() { using (new TransactionScope()) { // Given const int candidateId = 273836; const int customisationId = 27088; const int sectionId = 2002; sectionContentTestHelper.UpdateConsolidationPath(sectionId, "some/consolidation/path.pdf"); // When var result = postLearningAssessmentService.GetPostLearningAssessment(customisationId, candidateId, sectionId); // Then result.Should().NotBeNull(); result !.OtherItemsInSectionExist.Should().BeTrue(); } }
public void Get_post_learning_assessment_has_no_other_items_in_section_if_just_has_diagnostic_but_no_path() { using (new TransactionScope()) { // Given const int candidateId = 187246; const int customisationId = 15073; const int sectionId = 366; // Add post learning path to section sectionContentTestHelper.UpdatePostLearningAssessmentPath(sectionId, "some/post-learning/path"); // When var result = postLearningAssessmentService.GetPostLearningAssessment(customisationId, candidateId, sectionId); // Then result.Should().NotBeNull(); result !.OtherItemsInSectionExist.Should().BeFalse(); } }
public void Get_tutorial_information_has_no_other_items_in_section_if_other_tutorials_are_archived() { using (new TransactionScope()) { // Given const int customisationId = 14895; const int candidateId = 22045; const int sectionId = 333; const int tutorialId = 1339; // The tutorials in this section, which does not have a post learning assessment or consolidation path tutorialContentTestHelper.ArchiveTutorial(1340); tutorialContentTestHelper.ArchiveTutorial(1341); // When var tutorial = tutorialContentDataService.GetTutorialInformation(candidateId, customisationId, sectionId, tutorialId); // Then tutorial.Should().NotBeNull(); tutorial !.OtherItemsInSectionExist.Should().BeFalse(); } }
public void Get_diagnostic_assessment_has_no_other_items_in_section_if_tutorials_are_archived() { using (new TransactionScope()) { // Given const int candidateId = 145944; const int customisationId = 26468; const int sectionId = 2548; const int tutorialId = 11450; // Set a tutorial to have status 1 in section that would only have a diagnostic otherwise tutorialContentTestHelper.UpdateTutorialStatus(tutorialId, customisationId, 1); // Then archive it to check there still are no other items in the section tutorialContentTestHelper.ArchiveTutorial(tutorialId); // When var result = diagnosticAssessmentDataService.GetDiagnosticAssessment(customisationId, candidateId, sectionId); // Then result.Should().NotBeNull(); result !.OtherItemsInSectionExist.Should().BeFalse(); } }