13 instantiations of OkResult
BasicWebSite (1)
Controllers\TempDataPropertyController.cs (1)
49return new OkResult();
Microsoft.AspNetCore.Mvc.Core (1)
ControllerBase.cs (1)
309=> new OkResult();
Microsoft.AspNetCore.Mvc.Core.Test (9)
ActionResultOfTTest.cs (2)
26var actionResult = new OkResult(); 48var expected = new OkResult();
ApplicationModels\InferParameterBindingInfoConventionTest.cs (2)
1000public IActionResult RequiredComplexType(TestModel model) => new OkResult(); 1003public IActionResult NullableComplexType(TestModel? model) => new OkResult();
HttpOkResultTest.cs (2)
19var result = new OkResult(); 33var result = new OkResult();
Infrastructure\ActionMethodExecutorTest.cs (1)
500public Task<object> ReturnIActionResultAsObjectAsync() => Task.FromResult((object)new OkResult());
Infrastructure\ControllerActionInvokerProviderTest.cs (1)
94public IActionResult GetAction() => new OkResult();
Infrastructure\ModelStateInvalidFilterTest.cs (1)
24var expected = new OkResult();
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\HandleOptionsRequestsPageFilter.cs (1)
43context.Result = new OkResult();
RazorPagesWebSite (1)
Pages\PropertyBinding\BindFormFile.cshtml.cs (1)
40return new OkResult();
13 references to OkResult
Microsoft.AspNetCore.Mvc.Core (4)
ControllerBase.cs (3)
304/// Creates an <see cref="OkResult"/> object that produces an empty <see cref="StatusCodes.Status200OK"/> response. 306/// <returns>The created <see cref="OkResult"/> for the response.</returns> 308public virtual OkResult Ok()
OkResult.cs (1)
19/// Initializes a new instance of the <see cref="OkResult"/> class.
Microsoft.AspNetCore.Mvc.Core.Test (8)
ActionResultOfTTest.cs (2)
26var actionResult = new OkResult(); 48var expected = new OkResult();
ControllerBaseTest.cs (2)
2012var result = controller.Ok(); 2015Assert.IsType<OkResult>(result);
HttpOkResultTest.cs (2)
19var result = new OkResult(); 33var result = new OkResult();
Infrastructure\ActionMethodExecutorTest.cs (1)
384Assert.IsType<OkResult>(await valueTask);
Infrastructure\ModelStateInvalidFilterTest.cs (1)
24var expected = new OkResult();
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Infrastructure\DisallowOptionsRequestsPageFilterTest.cs (1)
122Assert.IsType<OkResult>(context.Result);