4 instantiations of BodyModelBinderProvider
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\MvcCoreMvcOptionsSetup.cs (1)
50options.ModelBinderProviders.Add(new BodyModelBinderProvider(options.InputFormatters, _readerFactory, _loggerFactory, options));
Microsoft.AspNetCore.Mvc.Core.Test (3)
Controllers\ControllerBinderDelegateProviderTest.cs (1)
1134var modelBinderProvider = new BodyModelBinderProvider(new[] { Mock.Of<IInputFormatter>() }, Mock.Of<IHttpRequestStreamReaderFactory>());
ModelBinding\Binders\BodyModelBinderProviderTest.cs (2)
79var provider = new BodyModelBinderProvider(formatterList, new TestHttpRequestStreamReaderFactory()); 136return new BodyModelBinderProvider(
14 references to BodyModelBinderProvider
Microsoft.AspNetCore.Mvc.Core (3)
ModelBinding\Binders\BodyModelBinderProvider.cs (3)
25/// Creates a new <see cref="BodyModelBinderProvider"/>. 35/// Creates a new <see cref="BodyModelBinderProvider"/>. 46/// Creates a new <see cref="BodyModelBinderProvider"/>.
Microsoft.AspNetCore.Mvc.Core.Test (10)
Controllers\ControllerBinderDelegateProviderTest.cs (1)
1134var modelBinderProvider = new BodyModelBinderProvider(new[] { Mock.Of<IInputFormatter>() }, Mock.Of<IHttpRequestStreamReaderFactory>());
ModelBinding\Binders\BodyModelBinderProviderTest.cs (9)
29var provider = CreateProvider(); 47var provider = CreateProvider(); 60var provider = CreateProvider(new TestInputFormatter()); 79var provider = new BodyModelBinderProvider(formatterList, new TestHttpRequestStreamReaderFactory()); 92var allowEmpty = BodyModelBinderProvider.CalculateAllowEmptyBody(EmptyBodyBehavior.Default, options); 102var allowEmpty = BodyModelBinderProvider.CalculateAllowEmptyBody(EmptyBodyBehavior.Default, options: null); 112var allowEmpty = BodyModelBinderProvider.CalculateAllowEmptyBody(EmptyBodyBehavior.Allow, options: new MvcOptions()); 126var allowEmpty = BodyModelBinderProvider.CalculateAllowEmptyBody(EmptyBodyBehavior.Disallow, options); 132private static BodyModelBinderProvider CreateProvider(params IInputFormatter[] formatters)
Microsoft.AspNetCore.Mvc.Test (1)
MvcOptionsSetupTest.cs (1)
50binder => Assert.IsType<BodyModelBinderProvider>(binder),