Пример #1
0
            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);
            }
Пример #2
0
        public IActionResult PageNotFound()
        {
            var viewmodel = new PageNotFoundViewModel
            {
                TechnicalSupportEmailAddress = _configuration.TechnicalSupportEmailAddress
            };

            return(View(viewmodel));
        }