10 writes to AllowEmptyInputInBodyModelBinding
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
DefaultApiDescriptionProviderTest.cs (1)
2038DefaultApiDescriptionProvider.ProcessIsRequired(context, new MvcOptions { AllowEmptyInputInBodyModelBinding = true });
Microsoft.AspNetCore.Mvc.Core.Test (2)
ModelBinding\Binders\BodyModelBinderProviderTest.cs (2)
89var options = new MvcOptions { AllowEmptyInputInBodyModelBinding = true }; 123var options = new MvcOptions { AllowEmptyInputInBodyModelBinding = true };
Microsoft.AspNetCore.Mvc.IntegrationTests (7)
BodyValidationIntegrationTests.cs (4)
375testContext.MvcOptions.AllowEmptyInputInBodyModelBinding = true; 417testContext.MvcOptions.AllowEmptyInputInBodyModelBinding = true; 624options => options.AllowEmptyInputInBodyModelBinding = allowEmptyInputInBodyModelBindingSetting); 669options => options.AllowEmptyInputInBodyModelBinding = true);
ComplexRecordIntegrationTest.cs (2)
148testContext.MvcOptions.AllowEmptyInputInBodyModelBinding = true; 202testContext.MvcOptions.AllowEmptyInputInBodyModelBinding = true;
ComplexTypeIntegrationTestBase.cs (1)
185testContext.MvcOptions.AllowEmptyInputInBodyModelBinding = true;
3 references to AllowEmptyInputInBodyModelBinding
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
DefaultApiDescriptionProvider.cs (1)
302parameter.IsRequired = !mvcOptions.AllowEmptyInputInBodyModelBinding;
Microsoft.AspNetCore.Mvc.Core (2)
FromBodyAttribute.cs (1)
23/// The default behavior is to use framework defaults as configured by <see cref="MvcOptions.AllowEmptyInputInBodyModelBinding"/>.
ModelBinding\Binders\BodyModelBinderProvider.cs (1)
98return options?.AllowEmptyInputInBodyModelBinding ?? false;