public void WhenNull_ThenSetToNull() { var parameters = new ApiTypes.SearchApprenticeshipParameters() { SortBy = null }; var request = _mapper.Map <SearchApprenticeshipVacanciesRequest>(parameters); request.SortBy.Should().BeNull(); }
public void WhenExpectedStartDate_ThenSetToExpectedStartDate() { var parameters = new ApiTypes.SearchApprenticeshipParameters() { SortBy = ApiTypes.SortBy.ExpectedStartDate.ToString() }; var request = _mapper.Map <SearchApprenticeshipVacanciesRequest>(parameters); request.SortBy.Should().Be(SortBy.ExpectedStartDate.ToString()); }