示例#1
0
        public void ThenSetApplicationUrl()
        {
            string expectedUrl = "https://" + Guid.NewGuid();
            var    vacancy     = new ApprenticeshipVacancy
            {
                EmployersRecruitmentWebsite = expectedUrl,
                Location             = new Address(),
                ApprenticeshipTypeId = 1
            };

            ApprenticeshipVacancyDto result = _sut.MapToApprenticeshipVacancy(vacancy);

            result.ApplicationUrl.Should().Be(expectedUrl);
        }
示例#2
0
        public void ThenSetApplicationInstructions()
        {
            string expectedInstructions = Guid.NewGuid().ToString();
            var    vacancy = new ApprenticeshipVacancy
            {
                EmployersApplicationInstructions = expectedInstructions,
                Location             = new Address(),
                ApprenticeshipTypeId = 1
            };

            ApprenticeshipVacancyDto result = _sut.MapToApprenticeshipVacancy(vacancy);

            result.ApplicationInstructions.Should().Be(expectedInstructions);
        }