9 instantiations of NotFoundResult
Microsoft.AspNetCore.Mvc.Core (3)
ControllerBase.cs (1)
1732=> new NotFoundResult();
Formatters\FormatFilter.cs (2)
78context.Result = new NotFoundResult(); 104context.Result = new NotFoundResult();
Microsoft.AspNetCore.Mvc.Core.Test (3)
HttpNotFoundResultTests.cs (1)
14var notFound = new NotFoundResult();
Infrastructure\ClientErrorResultFilterTest.cs (2)
36var actionResult = new NotFoundResult(); 58var actionResult = new NotFoundResult();
Microsoft.AspNetCore.Mvc.RazorPages (2)
PageBase.cs (1)
464=> new NotFoundResult();
PageModel.cs (1)
771=> new NotFoundResult();
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Infrastructure\DisallowOptionsRequestsPageFilterTest.cs (1)
95var expected = new NotFoundResult();
27 references to NotFoundResult
Microsoft.AspNetCore.Mvc.Core (4)
ControllerBase.cs (3)
1727/// Creates a <see cref="NotFoundResult"/> that produces a <see cref="StatusCodes.Status404NotFound"/> response. 1729/// <returns>The created <see cref="NotFoundResult"/> for the response.</returns> 1731public virtual NotFoundResult NotFound()
NotFoundResult.cs (1)
19/// Creates a new <see cref="NotFoundResult"/> instance.
Microsoft.AspNetCore.Mvc.Core.Test (9)
ControllerBaseTest.cs (2)
1983var result = controller.NotFound(); 1986Assert.IsType<NotFoundResult>(result);
Formatters\FormatFilterTest.cs (4)
151Assert.IsType<NotFoundResult>(actionResult); 232Assert.IsType<NotFoundResult>(actionResult); 257var result = Assert.IsType<NotFoundResult>(resourceExecutingContext.Result);
HttpNotFoundResultTests.cs (1)
14var notFound = new NotFoundResult();
Infrastructure\ClientErrorResultFilterTest.cs (2)
36var actionResult = new NotFoundResult(); 58var actionResult = new NotFoundResult();
Microsoft.AspNetCore.Mvc.RazorPages (6)
PageBase.cs (3)
460/// Creates an <see cref="NotFoundResult"/> that produces a <see cref="StatusCodes.Status404NotFound"/> response. 462/// <returns>The created <see cref="NotFoundResult"/> for the response.</returns> 463public virtual NotFoundResult NotFound()
PageModel.cs (3)
767/// Creates an <see cref="NotFoundResult"/> that produces a <see cref="StatusCodes.Status404NotFound"/> response. 769/// <returns>The created <see cref="NotFoundResult"/> for the response.</returns> 770public virtual NotFoundResult NotFound()
Microsoft.AspNetCore.Mvc.RazorPages.Test (5)
Infrastructure\DisallowOptionsRequestsPageFilterTest.cs (1)
95var expected = new NotFoundResult();
PageModelTest.cs (2)
1542var result = pageModel.NotFound(); 1545Assert.IsType<NotFoundResult>(result);
PageTest.cs (2)
1532var result = page.NotFound(); 1535Assert.IsType<NotFoundResult>(result);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
ControllerUnitTestabilityTests.cs (2)
250var httpNotFoundResult = Assert.IsType<NotFoundResult>(result);
RazorPagesWebSite (1)
ModelAsFilter.cs (1)
32if (context.Result is NotFoundResult)