public void NoResults() { var results = new searchResults(); var view = results.RenderAsHtml(new ApprenticeshipSearchResponseViewModel { VacancySearch = new ApprenticeshipSearchViewModel() }); view.GetElementbyId("sort-results").Should().BeNull(); view.GetElementbyId("search-no-results-title").Should().NotBeNull(); }
public void ShowApprenticeshipLevelAdvice() { var results = new searchResults(); var view = results.RenderAsHtml(new ApprenticeshipSearchResponseViewModel { VacancySearch = new ApprenticeshipSearchViewModel { ApprenticeshipLevel = "Intermediate" }, }); view.GetElementbyId("search-no-results-apprenticeship-levels").Should().NotBeNull(); }
public void Category_NoResults() { var results = new searchResults(); var searchViewModel = Mediator.Index(null, ApprenticeshipSearchMode.Category, false).ViewModel; searchViewModel.Category = "1"; var searchResultsViewModel = Mediator.Results(null, searchViewModel).ViewModel; var view = results.RenderAsHtml(searchResultsViewModel); view.GetElementbyId("search-no-results").Should().NotBeNull(); view.GetElementbyId("search-no-results-category").Should().NotBeNull(); view.GetElementbyId("search-no-results-sub-category").Should().BeNull(); }
public void ShowNoResultsReferenceNumber() { var results = new searchResults(); var view = results.RenderAsHtml(new ApprenticeshipSearchResponseViewModel { VacancySearch = new ApprenticeshipSearchViewModel { SearchMode = ApprenticeshipSearchMode.Keyword, Keywords = "VAC000514705" }, }); view.GetElementbyId("search-no-results-reference-number").Should().NotBeNull(); view.GetElementbyId("search-no-results-keywords").Should().BeNull(); }