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