5 instantiations of BodyModelBinder
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Binders\BodyModelBinderProvider.cs (1)
85return new BodyModelBinder(_formatters, _readerFactory, _loggerFactory, _options)
Microsoft.AspNetCore.Mvc.Core.Test (4)
ModelBinding\Binders\BodyModelBinderTests.cs (4)
605var binder = new BodyModelBinder(inputFormatters, new TestHttpRequestStreamReaderFactory(), loggerFactory); 635var binder = new BodyModelBinder(inputFormatters, new TestHttpRequestStreamReaderFactory(), loggerFactory); 668var binder = new BodyModelBinder(new List<IInputFormatter>(), new TestHttpRequestStreamReaderFactory()); 720return new BodyModelBinder(formatters, new TestHttpRequestStreamReaderFactory(), loggerFactory, mvcOptions);
32 references to BodyModelBinder
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (2)
DefaultApiDescriptionProviderTest.cs (2)
2462private void AcceptsProduct_Custom([ModelBinder<BodyModelBinder>] Product product) 2562private void FromCustom([ModelBinder<BodyModelBinder>] int id)
Microsoft.AspNetCore.Mvc.Core (5)
ModelBinding\Binders\BodyModelBinder.cs (5)
28/// Creates a new <see cref="BodyModelBinder"/>. 41/// Creates a new <see cref="BodyModelBinder"/>. 58/// Creates a new <see cref="BodyModelBinder"/>. 79_logger = loggerFactory?.CreateLogger(typeof(BodyModelBinder)) ?? NullLogger<BodyModelBinder>.Instance;
Microsoft.AspNetCore.Mvc.Core.Test (25)
ModelBinding\Binders\BodyModelBinderProviderTest.cs (1)
68Assert.IsType<BodyModelBinder>(result);
ModelBinding\Binders\BodyModelBinderTests.cs (24)
40var binder = CreateBinder(new[] { inputFormatter }); 60var binder = CreateBinder(new List<IInputFormatter>()); 85var binder = CreateBinder(new List<IInputFormatter>()); 109var binder = CreateBinder(new List<IInputFormatter>()); 142var binder = CreateBinder(new[] { inputFormatter }); 180var binder = CreateBinder(new[] { inputFormatter }, treatEmptyInputAsDefaultValueOption); 208var binder = CreateBinder(new[] { inputFormatter }, treatEmptyInputAsDefaultValueOption: true); 236var binder = CreateBinder(new[] { inputFormatter }, treatEmptyInputAsDefaultValueOption: false); 265var binder = CreateBinder(new[] { formatter }, new MvcOptions()); 308var binder = CreateBinder(new[] { formatter }, new MvcOptions()); 337var binder = CreateBinder( 379var binder = CreateBinder(new[] { formatter }, new MvcOptions()); 408var binder = CreateBinder( 455var binder = CreateBinder(new[] { formatter }, new MvcOptions()); 490var binder = CreateBinder(new[] { formatter }, new MvcOptions()); 523var binder = CreateBinder(new[] { formatter }, new MvcOptions()); 546var binder = CreateBinder(new List<IInputFormatter>()); 579var binder = CreateBinder(inputFormatters); 605var binder = new BodyModelBinder(inputFormatters, new TestHttpRequestStreamReaderFactory(), loggerFactory); 635var binder = new BodyModelBinder(inputFormatters, new TestHttpRequestStreamReaderFactory(), loggerFactory); 668var binder = new BodyModelBinder(new List<IInputFormatter>(), new TestHttpRequestStreamReaderFactory()); 707private static BodyModelBinder CreateBinder(IList<IInputFormatter> formatters, bool treatEmptyInputAsDefaultValueOption = false) 710var binder = CreateBinder(formatters, options); 716private static BodyModelBinder CreateBinder(IList<IInputFormatter> formatters, MvcOptions mvcOptions)