Example #1
0
        public void WhenNull_ThenSetToNull()
        {
            var parameters = new ApiTypes.SearchApprenticeshipParameters()
            {
                SortBy = null
            };
            var request = _mapper.Map <SearchApprenticeshipVacanciesRequest>(parameters);

            request.SortBy.Should().BeNull();
        }
Example #2
0
        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());
        }