4 instantiations of UnauthorizedResult
Microsoft.AspNetCore.Mvc.Core (1)
ControllerBase.cs (1)
1716=> new UnauthorizedResult();
Microsoft.AspNetCore.Mvc.Core.Test (1)
HttpUnauthorizedResultTests.cs (1)
14var result = new UnauthorizedResult();
Microsoft.AspNetCore.Mvc.RazorPages (2)
PageBase.cs (1)
1163=> new UnauthorizedResult();
PageModel.cs (1)
1520=> new UnauthorizedResult();
18 references to UnauthorizedResult
Microsoft.AspNetCore.Mvc.Core (5)
ControllerBase.cs (3)
1711/// Creates an <see cref="UnauthorizedResult"/> that produces a <see cref="StatusCodes.Status401Unauthorized"/> response. 1713/// <returns>The created <see cref="UnauthorizedResult"/> for the response.</returns> 1715public virtual UnauthorizedResult Unauthorized()
UnauthorizedResult.cs (2)
10/// Represents an <see cref="UnauthorizedResult"/> that when 19/// Creates a new <see cref="UnauthorizedResult"/> instance.
Microsoft.AspNetCore.Mvc.Core.Test (3)
ControllerBaseTest.cs (2)
1969var result = controller.Unauthorized(); 1972Assert.IsType<UnauthorizedResult>(result);
HttpUnauthorizedResultTests.cs (1)
14var result = new UnauthorizedResult();
Microsoft.AspNetCore.Mvc.RazorPages (6)
PageBase.cs (3)
1159/// Creates an <see cref="UnauthorizedResult"/> that produces an <see cref="StatusCodes.Status401Unauthorized"/> response. 1161/// <returns>The created <see cref="UnauthorizedResult"/> for the response.</returns> 1162public virtual UnauthorizedResult Unauthorized()
PageModel.cs (3)
1516/// Creates an <see cref="UnauthorizedResult"/> that produces an <see cref="StatusCodes.Status401Unauthorized"/> response. 1518/// <returns>The created <see cref="UnauthorizedResult"/> for the response.</returns> 1519public virtual UnauthorizedResult Unauthorized()
Microsoft.AspNetCore.Mvc.RazorPages.Test (4)
PageModelTest.cs (2)
1499var result = pageModel.Unauthorized(); 1502Assert.IsType<UnauthorizedResult>(result);
PageTest.cs (2)
1489var result = page.Unauthorized(); 1492Assert.IsType<UnauthorizedResult>(result);