7 instantiations of NotFoundObjectResult
Microsoft.AspNetCore.Mvc.Core (1)
ControllerBase.cs (1)
1740=> new NotFoundObjectResult(value);
Microsoft.AspNetCore.Mvc.Core.Test (4)
HttpNotFoundObjectResultTest.cs (3)
19var notFound = new NotFoundObjectResult(null); 29var notFound = new NotFoundObjectResult("Test Content"); 46var result = new NotFoundObjectResult("Test Content");
Infrastructure\ClientErrorResultFilterTest.cs (1)
21var actionResult = new NotFoundObjectResult(new object());
Microsoft.AspNetCore.Mvc.RazorPages (2)
PageBase.cs (1)
471=> new NotFoundObjectResult(value);
PageModel.cs (1)
778=> new NotFoundObjectResult(value);
22 references to NotFoundObjectResult
Microsoft.AspNetCore.Mvc.Core (4)
ControllerBase.cs (3)
1735/// Creates a <see cref="NotFoundObjectResult"/> that produces a <see cref="StatusCodes.Status404NotFound"/> response. 1737/// <returns>The created <see cref="NotFoundObjectResult"/> for the response.</returns> 1739public virtual NotFoundObjectResult NotFound([ActionResultObjectValue] object? value)
NotFoundObjectResult.cs (1)
18/// Creates a new <see cref="NotFoundObjectResult"/> instance.
Microsoft.AspNetCore.Mvc.Core.Test (6)
ControllerBaseTest.cs (2)
1997var result = controller.NotFound("Test Content"); 2000Assert.IsType<NotFoundObjectResult>(result);
HttpNotFoundObjectResultTest.cs (3)
19var notFound = new NotFoundObjectResult(null); 29var notFound = new NotFoundObjectResult("Test Content"); 46var result = new NotFoundObjectResult("Test Content");
Infrastructure\ClientErrorResultFilterTest.cs (1)
21var actionResult = new NotFoundObjectResult(new object());
Microsoft.AspNetCore.Mvc.RazorPages (6)
PageBase.cs (3)
467/// Creates an <see cref="NotFoundObjectResult"/> that produces a <see cref="StatusCodes.Status404NotFound"/> response. 469/// <returns>The created <see cref="NotFoundObjectResult"/> for the response.</returns> 470public virtual NotFoundObjectResult NotFound(object value)
PageModel.cs (3)
774/// Creates an <see cref="NotFoundObjectResult"/> that produces a <see cref="StatusCodes.Status404NotFound"/> response. 776/// <returns>The created <see cref="NotFoundObjectResult"/> for the response.</returns> 777public virtual NotFoundObjectResult NotFound(object value)
Microsoft.AspNetCore.Mvc.RazorPages.Test (4)
PageModelTest.cs (2)
1556var result = pageModel.NotFound("Test Content"); 1559Assert.IsType<NotFoundObjectResult>(result);
PageTest.cs (2)
1546var result = page.NotFound("Test Content"); 1549Assert.IsType<NotFoundObjectResult>(result);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
ControllerUnitTestabilityTests.cs (2)
266var httpNotFoundObjectResult = Assert.IsType<NotFoundObjectResult>(result);