13 instantiations of OkResult
BasicWebSite (1)
Controllers\TempDataPropertyController.cs (1)
49
return new
OkResult
();
Microsoft.AspNetCore.Mvc.Core (1)
ControllerBase.cs (1)
309
=> new
OkResult
();
Microsoft.AspNetCore.Mvc.Core.Test (9)
ActionResultOfTTest.cs (2)
26
var actionResult = new
OkResult
();
48
var expected = new
OkResult
();
ApplicationModels\InferParameterBindingInfoConventionTest.cs (2)
1000
public IActionResult RequiredComplexType(TestModel model) => new
OkResult
();
1003
public IActionResult NullableComplexType(TestModel? model) => new
OkResult
();
HttpOkResultTest.cs (2)
19
var result = new
OkResult
();
33
var result = new
OkResult
();
Infrastructure\ActionMethodExecutorTest.cs (1)
500
public Task<object> ReturnIActionResultAsObjectAsync() => Task.FromResult((object)new
OkResult
());
Infrastructure\ControllerActionInvokerProviderTest.cs (1)
94
public IActionResult GetAction() => new
OkResult
();
Infrastructure\ModelStateInvalidFilterTest.cs (1)
24
var expected = new
OkResult
();
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\HandleOptionsRequestsPageFilter.cs (1)
43
context.Result = new
OkResult
();
RazorPagesWebSite (1)
Pages\PropertyBinding\BindFormFile.cshtml.cs (1)
40
return 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>
308
public 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)
26
var
actionResult = new OkResult();
48
var
expected = new OkResult();
ControllerBaseTest.cs (2)
2012
var
result = controller.Ok();
2015
Assert.IsType<
OkResult
>(result);
HttpOkResultTest.cs (2)
19
var
result = new OkResult();
33
var
result = new OkResult();
Infrastructure\ActionMethodExecutorTest.cs (1)
384
Assert.IsType<
OkResult
>(await valueTask);
Infrastructure\ModelStateInvalidFilterTest.cs (1)
24
var
expected = new OkResult();
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Infrastructure\DisallowOptionsRequestsPageFilterTest.cs (1)
122
Assert.IsType<
OkResult
>(context.Result);