9 instantiations of NotFoundResult
Microsoft.AspNetCore.Mvc.Core (3)
ControllerBase.cs (1)
1732
=> new
NotFoundResult
();
Formatters\FormatFilter.cs (2)
78
context.Result = new
NotFoundResult
();
104
context.Result = new
NotFoundResult
();
Microsoft.AspNetCore.Mvc.Core.Test (3)
HttpNotFoundResultTests.cs (1)
14
var notFound = new
NotFoundResult
();
Infrastructure\ClientErrorResultFilterTest.cs (2)
36
var actionResult = new
NotFoundResult
();
58
var 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)
95
var 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>
1731
public virtual
NotFoundResult
NotFound()
NotFoundResult.cs (1)
19
/// Creates a new <see cref="
NotFoundResult
"/> instance.
Microsoft.AspNetCore.Mvc.Core.Test (9)
ControllerBaseTest.cs (2)
1983
var
result = controller.NotFound();
1986
Assert.IsType<
NotFoundResult
>(result);
Formatters\FormatFilterTest.cs (4)
151
Assert.IsType<
NotFoundResult
>(actionResult);
232
Assert.IsType<
NotFoundResult
>(actionResult);
257
var
result = Assert.IsType<
NotFoundResult
>(resourceExecutingContext.Result);
HttpNotFoundResultTests.cs (1)
14
var
notFound = new NotFoundResult();
Infrastructure\ClientErrorResultFilterTest.cs (2)
36
var
actionResult = new NotFoundResult();
58
var
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>
463
public 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>
770
public virtual
NotFoundResult
NotFound()
Microsoft.AspNetCore.Mvc.RazorPages.Test (5)
Infrastructure\DisallowOptionsRequestsPageFilterTest.cs (1)
95
var
expected = new NotFoundResult();
PageModelTest.cs (2)
1542
var
result = pageModel.NotFound();
1545
Assert.IsType<
NotFoundResult
>(result);
PageTest.cs (2)
1532
var
result = page.NotFound();
1535
Assert.IsType<
NotFoundResult
>(result);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
ControllerUnitTestabilityTests.cs (2)
250
var
httpNotFoundResult = Assert.IsType<
NotFoundResult
>(result);
RazorPagesWebSite (1)
ModelAsFilter.cs (1)
32
if (context.Result is
NotFoundResult
)