36 references to ModelBinderAttribute
Microsoft.AspNetCore.Mvc.Abstractions.Test (1)
ModelBinding\BindingInfoTest.cs (1)
102new ModelBinderAttribute { BinderType = typeof(ComplexObjectModelBinder), Name = "Test" },
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (3)
DefaultApiDescriptionProviderTest.cs (3)
2455private void AcceptsProduct_Default([ModelBinder] Product product) 2488private void AcceptsManager([ModelBinder] Manager dto) 2596[ModelBinder]
Microsoft.AspNetCore.Mvc.Core.Test (16)
ApplicationModels\InferParameterBindingInfoConventionTest.cs (2)
1010public IActionResult ModelBinderAttribute([ModelBinder(Name = "top")] int value) => null; 1070public IActionResult ModelBinderAttributeWithExplicitModelName([ModelBinder(Name = "top")] int value) => null;
ModelBinding\Metadata\DefaultBindingMetadataProviderTest.cs (11)
17new ModelBinderAttribute() { BinderType = typeof(HeaderModelBinder) }, 18new ModelBinderAttribute() { BinderType = typeof(ArrayModelBinder<string>) }, 40new ModelBinderAttribute(), 41new ModelBinderAttribute() { BinderType = typeof(HeaderModelBinder) }, 42new ModelBinderAttribute() { BinderType = typeof(ArrayModelBinder<string>) }, 64new ModelBinderAttribute() { Name = "Product" }, 65new ModelBinderAttribute() { Name = "Order" }, 87new ModelBinderAttribute(), 88new ModelBinderAttribute() { Name = "Product" }, 89new ModelBinderAttribute() { Name = "Order" }, 134new ModelBinderAttribute(),
ModelBinding\Metadata\ModelAttributesTest.cs (1)
332[ModelBinder(Name = "Custom")]
ModelBinding\Metadata\ModelBinderAttributeTest.cs (2)
14var attribute = new ModelBinderAttribute(); 27var attribute = new ModelBinderAttribute
Microsoft.AspNetCore.Mvc.IntegrationTests (6)
ComplexRecordIntegrationTest.cs (2)
2629[ModelBinder(Name = "HomeAddress")] 3021private record TestInnerModel([ModelBinder(BinderType = typeof(NumberModelBinder))] decimal Rate);
ComplexTypeIntegrationTestBase.cs (2)
2805[ModelBinder(Name = "HomeAddress")] 3234[ModelBinder(BinderType = typeof(NumberModelBinder))]
FormFileModelBindingIntegrationTest.cs (2)
467[ModelBinder(Name = "files")] 551[ModelBinder(Name = "files")]
Microsoft.AspNetCore.Mvc.RazorPages.Test (6)
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (5)
598[ModelBinder] 608[ModelBinder] 649[ModelBinder] 661[ModelBinder] 927public void OnPost(string name, [ModelBinder(Name = "personId")] int id) { }
Infrastructure\PageBinderFactoryTest.cs (1)
934[ModelBinder]
MvcSandbox (1)
Controllers\HomeController.cs (1)
10[ModelBinder]
RazorPagesWebSite (3)
Pages\PropertyBinding\PageModelWithPropertyAndArgumentBinding.cs (1)
11[ModelBinder]
Pages\PropertyBinding\PageModelWithPropertyBinding.cs (1)
11[ModelBinder]
Pages\TryValidateModelPageModel.cs (1)
11[ModelBinder]