public void Should_render_a_PageNotFound_view_and_append_standard_error_message_to_description() { PageNotFoundViewModel pageNotFoundViewModel = new PageNotFoundViewModel(); Assert.AreEqual("Requested Url not found", _pageNotFoundController.Index(pageNotFoundViewModel).Description); }
public IActionResult PageNotFound() { var viewmodel = new PageNotFoundViewModel { TechnicalSupportEmailAddress = _configuration.TechnicalSupportEmailAddress }; return(View(viewmodel)); }