2 implementations of IObjectModelValidator
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\ObjectModelValidator.cs (1)
13
public abstract class ObjectModelValidator :
IObjectModelValidator
Microsoft.AspNetCore.Mvc.Core.Test (1)
Controllers\ControllerBinderDelegateProviderTest.cs (1)
1461
private class TestObjectModelValidator :
IObjectModelValidator
48 references to IObjectModelValidator
Microsoft.AspNetCore.Mvc.Core (20)
ControllerBase.cs (4)
30
private
IObjectModelValidator
? _objectValidator;
158
/// Gets or sets the <see cref="
IObjectModelValidator
"/>.
161
public
IObjectModelValidator
ObjectValidator
167
_objectValidator = HttpContext?.RequestServices?.GetRequiredService<
IObjectModelValidator
>();
DependencyInjection\MvcCoreServiceCollectionExtensions.cs (1)
215
services.TryAddSingleton<
IObjectModelValidator
>(s =>
ModelBinding\ModelBindingHelper.cs (10)
34
/// <param name="objectModelValidator">The <see cref="
IObjectModelValidator
"/> used for validating the
44
IObjectModelValidator
objectModelValidator)
72
/// <param name="objectModelValidator">The <see cref="
IObjectModelValidator
"/> used for validating the
84
IObjectModelValidator
objectModelValidator,
117
/// <param name="objectModelValidator">The <see cref="
IObjectModelValidator
"/> used for validating the
130
IObjectModelValidator
objectModelValidator,
159
/// <param name="objectModelValidator">The <see cref="
IObjectModelValidator
"/> used for validating the
170
IObjectModelValidator
objectModelValidator)
198
/// <param name="objectModelValidator">The <see cref="
IObjectModelValidator
"/> used for validating the
211
IObjectModelValidator
objectModelValidator,
ModelBinding\ObjectModelValidator.cs (1)
11
/// Provides a base <see cref="
IObjectModelValidator
"/> implementation for validating an object graph.
ModelBinding\ParameterBinder.cs (3)
19
private readonly
IObjectModelValidator
_objectModelValidator;
26
/// <param name="validator">The <see cref="
IObjectModelValidator
"/>.</param>
33
IObjectModelValidator
validator,
ModelBinding\Validation\DefaultObjectValidator.cs (1)
9
/// The default implementation of <see cref="
IObjectModelValidator
"/>.
Microsoft.AspNetCore.Mvc.Core.Test (13)
Controllers\ControllerBinderDelegateProviderTest.cs (1)
536
var mockValidator = new Mock<
IObjectModelValidator
>(MockBehavior.Strict);
Controllers\DefaultControllerActivatorTest.cs (1)
177
.Setup(s => s.GetService(typeof(
IObjectModelValidator
)))
Controllers\DefaultControllerFactoryTest.cs (1)
229
.Setup(s => s.GetService(typeof(
IObjectModelValidator
)))
Infrastructure\ControllerActionInvokerCacheTest.cs (1)
102
Mock.Of<
IObjectModelValidator
>(),
Infrastructure\ControllerActionInvokerProviderTest.cs (1)
72
Mock.Of<
IObjectModelValidator
>(),
ModelBinding\ModelBindingHelperTest.cs (6)
39
new Mock<
IObjectModelValidator
>(MockBehavior.Strict).Object);
144
new Mock<
IObjectModelValidator
>(MockBehavior.Strict).Object,
224
new Mock<
IObjectModelValidator
>(MockBehavior.Strict).Object,
474
objectModelValidator: new Mock<
IObjectModelValidator
>(MockBehavior.Strict).Object,
557
objectModelValidator: new Mock<
IObjectModelValidator
>(MockBehavior.Strict).Object);
628
new Mock<
IObjectModelValidator
>(MockBehavior.Strict).Object,
ModelBinding\ParameterBinderTest.cs (2)
267
var mockValidator = new Mock<
IObjectModelValidator
>(MockBehavior.Strict);
787
IObjectModelValidator
validator)
Microsoft.AspNetCore.Mvc.IntegrationTests (1)
ModelBindingTestHelper.cs (1)
124
public static
IObjectModelValidator
GetObjectValidator(
Microsoft.AspNetCore.Mvc.RazorPages (6)
PageBase.cs (3)
27
private
IObjectModelValidator
? _objectValidator;
78
private
IObjectModelValidator
ObjectValidator
84
_objectValidator = HttpContext?.RequestServices?.GetRequiredService<
IObjectModelValidator
>();
PageModel.cs (3)
30
private
IObjectModelValidator
? _objectValidator;
152
private
IObjectModelValidator
ObjectValidator
158
_objectValidator = HttpContext?.RequestServices?.GetRequiredService<
IObjectModelValidator
>();
Microsoft.AspNetCore.Mvc.RazorPages.Test (8)
Infrastructure\PageActionInvokerProviderTest.cs (1)
511
Mock.Of<
IObjectModelValidator
>(),
Infrastructure\PageBinderFactoryTest.cs (7)
37
Mock.Of<
IObjectModelValidator
>(),
63
Mock.Of<
IObjectModelValidator
>(),
88
Mock.Of<
IObjectModelValidator
>(),
114
Mock.Of<
IObjectModelValidator
>(),
139
Mock.Of<
IObjectModelValidator
>(),
165
Mock.Of<
IObjectModelValidator
>(),
812
Mock.Of<
IObjectModelValidator
>(),