4 references to Disallow
Microsoft.AspNetCore.Mvc.Abstractions.Test (2)
ModelBinding\BindingInfoTest.cs (2)
129
new FromBodyAttribute() { EmptyBodyBehavior = EmptyBodyBehavior.
Disallow
}
140
Assert.Equal(EmptyBodyBehavior.
Disallow
, bindingInfo.EmptyBodyBehavior);
Microsoft.AspNetCore.Mvc.Core (1)
FromBodyAttribute.cs (1)
52
/// Specifying <see cref="EmptyBodyBehavior.Allow"/> or <see cref="EmptyBodyBehavior.
Disallow
" /> will override the framework defaults.
Microsoft.AspNetCore.Mvc.Core.Test (1)
ModelBinding\Binders\BodyModelBinderProviderTest.cs (1)
126
var allowEmpty = BodyModelBinderProvider.CalculateAllowEmptyBody(EmptyBodyBehavior.
Disallow
, options);