public void Tutorial_should_have_nextLinkViewModel() { // Given const string postLearningAssessmentPath = "/assessment"; const int nextTutorialId = 101; const int nextSectionId = 100; var expectedTutorialInformation = TutorialContentHelper.CreateDefaultTutorialInformation( nextTutorialId: nextTutorialId, nextSectionId: nextSectionId, postLearningAssessmentPath: postLearningAssessmentPath ); var expectedNextLinkViewModel = new TutorialNextLinkViewModel( CustomisationId, SectionId, postLearningAssessmentPath, nextTutorialId, nextSectionId ); // When var tutorialViewModel = new TutorialViewModel( config, expectedTutorialInformation, CustomisationId, SectionId ); // Then tutorialViewModel.NextLinkViewModel.Should().BeEquivalentTo(expectedNextLinkViewModel); }
public void Tutorial_should_have_nextSectionId() { // When var nextLinkViewModel = new TutorialNextLinkViewModel( CustomisationId, SectionId, PostLearningAssessmentPath, NextTutorialId, NextSectionId ); // Then nextLinkViewModel.NextSectionId.Should().Be(NextSectionId); }