public void Available_course_should_set_enrol_button_aria_label( int delegateStatus, string?expectedEnrolButtonAriaLabel ) { // Given var availableCourse = AvailableCourseHelper.CreateDefaultAvailableCourse(delegateStatus: delegateStatus); // When var availableCourseViewModel = new AvailableCourseViewModel(availableCourse); // Then availableCourseViewModel.EnrolButtonAriaLabel.Should().Be(expectedEnrolButtonAriaLabel); }
public void Available_course_should_map_delegate_status( int delegateStatus, DelegateStatus expectedMappedDelegateStatus ) { // Given var availableCourse = AvailableCourseHelper.CreateDefaultAvailableCourse(delegateStatus: delegateStatus); // When var availableCourseViewModel = new AvailableCourseViewModel(availableCourse); // Then availableCourseViewModel.DelegateStatus.Should().Be(expectedMappedDelegateStatus); }