public void TestCourseLengthMapIntoForSelection_CourseSalaryEnrichmentViewModel(string courseLengthOther)
        {
            var viewModel = new CourseSalaryEnrichmentViewModel
            {
                CourseLength      = CourseLength.OneYear,
                CourseLengthInput = courseLengthOther
            };

            var enrichmentModel = new CourseEnrichmentModel();

            viewModel.MapInto(ref enrichmentModel);

            enrichmentModel.CourseLength.Should().BeEquivalentTo("OneYear");
        }
        public void TestCourseLengthMapIntoForOtherTextEntry_CourseSalaryEnrichmentViewModel()
        {
            const string TextEnteredByUser = "******";
            var          viewModel         = new CourseSalaryEnrichmentViewModel
            {
                CourseLength      = CourseLength.Other,
                CourseLengthInput = TextEnteredByUser
            };

            var enrichmentModel = new CourseEnrichmentModel();

            viewModel.MapInto(ref enrichmentModel);

            enrichmentModel.CourseLength.Should().BeEquivalentTo(TextEnteredByUser);
        }