1 write to Value
Microsoft.AspNetCore.Mvc.Core (1)
ObjectResult.cs (1)
24
Value
= value;
94 references to Value
Microsoft.AspNetCore.Mvc.Core (6)
ApiBehaviorOptions.cs (1)
87
/// instance where the <see cref="ObjectResult.
Value
"/> is <see cref="ProblemDetails"/>.
Infrastructure\ObjectResultExecutor.cs (3)
76
objectType = result.
Value
?.GetType();
79
var value = result.
Value
;
134
if (result.
Value
is ProblemDetails)
MvcOptions.cs (1)
364
/// When <see cref="ObjectResult.
Value
" /> is an instance of <see cref="IAsyncEnumerable{T}"/>,
ObjectResult.cs (1)
73
if (
Value
is ProblemDetails details)
Microsoft.AspNetCore.Mvc.Core.Test (65)
AcceptedAtActionResultTests.cs (1)
103
Assert.Same(value, result.
Value
);
AcceptedAtRouteResultTests.cs (1)
44
Assert.Same(value, result.
Value
);
AcceptedResultTests.cs (1)
40
Assert.Same(value, result.
Value
);
ActionResultOfTTest.cs (3)
72
Assert.Same(value, objectResult.
Value
);
90
Assert.Same(value, objectResult.
Value
);
108
Assert.Same(value, objectResult.
Value
);
BadRequestObjectResultTests.cs (2)
20
Assert.Equal(obj, badRequestObjectResult.
Value
);
31
var errors = Assert.IsType<SerializableError>(badRequestObjectResult.
Value
);
ConflictObjectResultTest.cs (2)
20
Assert.Equal(obj, conflictObjectResult.
Value
);
31
var errors = Assert.IsType<SerializableError>(conflictObjectResult.
Value
);
ControllerBaseTest.cs (19)
1510
Assert.Same(value, result.
Value
);
2002
Assert.Equal("Test Content", result.
Value
);
2046
Assert.Equal(obj, result.
Value
);
2061
var errors = Assert.IsType<SerializableError>(result.
Value
);
2092
Assert.Equal(obj, result.
Value
);
2107
var errors = Assert.IsType<SerializableError>(result.
Value
);
2139
Assert.Equal(obj, result.
Value
);
2154
var errors = Assert.IsType<SerializableError>(result.
Value
);
2299
Assert.Equal(value, result.
Value
);
2316
Assert.Equal(value, result.
Value
);
2356
var problemDetails = Assert.IsType<ValidationProblemDetails>(badRequestResult.
Value
);
2384
var problemDetails = Assert.IsType<ValidationProblemDetails>(badRequestResult.
Value
);
2406
var problemDetails = Assert.IsType<ValidationProblemDetails>(objectResult.
Value
);
2427
var problemDetails = Assert.IsType<ValidationProblemDetails>(badRequestResult.
Value
);
2448
var problemDetails = Assert.IsType<ValidationProblemDetails>(objectResult.
Value
);
2475
var problemDetails = Assert.IsType<ProblemDetails>(badRequestResult.
Value
);
2501
var problemDetails = Assert.IsType<ProblemDetails>(badRequestResult.
Value
);
2525
var problemDetails = Assert.IsType<ProblemDetails>(badRequestResult.
Value
);
2546
var problemDetails = Assert.IsType<ProblemDetails>(badRequestResult.
Value
);
DependencyInjection\ApiBehaviorOptionsSetupTest.cs (5)
44
var problemDetails = Assert.IsType<ValidationProblemDetails>(badRequest.
Value
);
66
var problemDetails = Assert.IsType<ValidationProblemDetails>(badRequest.
Value
);
90
var problemDetails = Assert.IsType<ValidationProblemDetails>(objectResult.
Value
);
109
var problemDetails = Assert.IsType<ValidationProblemDetails>(badRequest.
Value
);
126
var problemDetails = Assert.IsType<ValidationProblemDetails>(badRequest.
Value
);
HttpNotFoundObjectResultTest.cs (1)
33
Assert.Equal("Test Content", notFound.
Value
);
HttpOkObjectResultTest.cs (1)
43
Assert.Same(value, result.
Value
);
Infrastructure\ActionMethodExecutorTest.cs (12)
113
Assert.NotNull(result.
Value
);
114
Assert.IsType<TestModel>(result.
Value
);
142
Assert.NotNull(result.
Value
);
143
Assert.IsType<TestModel>(result.
Value
);
171
Assert.NotNull(result.
Value
);
172
Assert.IsType<TestModel>(result.
Value
);
328
Assert.NotNull(result.
Value
);
329
Assert.IsType<TestModel>(result.
Value
);
357
Assert.NotNull(result.
Value
);
358
Assert.IsType<TestModel>(result.
Value
);
411
Assert.NotNull(result.
Value
);
412
Assert.IsType<TestModel>(result.
Value
);
Infrastructure\ActionResultTypeMapperTest.cs (1)
71
Assert.Same(returnValue, objectResult.
Value
);
Infrastructure\ControllerActionInvokerTest.cs (9)
900
Assert.Equal(inputParam1, contentResult.
Value
);
995
Assert.Equal(inputString, contentResult.
Value
);
1045
Assert.Equal("hello", contentResult.
Value
);
1072
Assert.Equal(inputString, contentResult.
Value
);
1098
Assert.Equal("world", contentResult.
Value
);
1125
Assert.Equal(inputString, contentResult.
Value
);
1182
Assert.IsType<int>(((ObjectResult)result).
Value
);
1183
Assert.Equal(1, ((ObjectResult)result).
Value
);
1291
Assert.Equal(inputParam1, contentResult.
Value
);
Infrastructure\ProblemDetalsClientErrorFactoryTest.cs (4)
32
var problemDetails = Assert.IsType<ProblemDetails>(objectResult.
Value
);
59
var problemDetails = Assert.IsType<ProblemDetails>(objectResult.
Value
);
89
var problemDetails = Assert.IsType<ProblemDetails>(objectResult.
Value
);
115
var problemDetails = Assert.IsType<ProblemDetails>(objectResult.
Value
);
ObjectResultTests.cs (1)
27
Assert.Equal(input, result.
Value
);
UnprocessableEntityObjectResultTests.cs (2)
20
Assert.Equal(obj, result.
Value
);
31
var errors = Assert.IsType<SerializableError>(result.
Value
);
Microsoft.AspNetCore.Mvc.RazorPages.Test (8)
PageModelTest.cs (4)
1532
Assert.Equal("Test Content", result.
Value
);
1561
Assert.Equal("Test Content", result.
Value
);
1684
Assert.Equal(value, result.
Value
);
1701
Assert.Equal(value, result.
Value
);
PageTest.cs (4)
1522
Assert.Equal("Test Content", result.
Value
);
1551
Assert.Equal("Test Content", result.
Value
);
1674
Assert.Equal(value, result.
Value
);
1691
Assert.Equal(value, result.
Value
);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (15)
ControllerUnitTestabilityTests.cs (15)
98
Assert.Equal(content, createdResult.
Value
);
118
Assert.Equal(content, acceptedResult.
Value
);
268
Assert.Equal("Test Content", httpNotFoundObjectResult.
Value
);
302
Assert.Same(error, httpBadRequest.
Value
);
315
Assert.Null(httpBadRequest.
Value
);
337
Assert.Same(value, createdAtRouteResult.
Value
);
351
Assert.Null(createdAtRouteResult.
Value
);
373
Assert.Same(value, acceptedAtRouteResult.
Value
);
387
Assert.Null(acceptedAtRouteResult.
Value
);
411
Assert.Same(value, createdAtActionResult.
Value
);
425
Assert.Null(createdAtActionResult.
Value
);
450
Assert.Same(value, acceptedAtActionResult.
Value
);
464
Assert.Null(acceptedAtActionResult.
Value
);
694
var problemDetails = Assert.IsType<ProblemDetails>(badRequest.
Value
);
711
var validationProblemDetails = Assert.IsType<ValidationProblemDetails>(badRequest.
Value
);