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); }
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); }