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

            TraineeshipVacancyDto result = _sut.MapToTraineeshipVacancy(vacancy);

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

            TraineeshipVacancyDto result = _sut.MapToTraineeshipVacancy(vacancy);

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