4 instantiations of HeaderModelBinder
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Binders\HeaderModelBinderProvider.cs (1)
55
return new
HeaderModelBinder
(loggerFactory, innerModelBinder);
Microsoft.AspNetCore.Mvc.Core.Test (3)
ModelBinding\Binders\HeaderModelBinderTests.cs (3)
20
var binder = new
HeaderModelBinder
(NullLoggerFactory.Instance);
47
var binder = new
HeaderModelBinder
(NullLoggerFactory.Instance);
73
var binder = new
HeaderModelBinder
(NullLoggerFactory.Instance);
19 references to HeaderModelBinder
Microsoft.AspNetCore.Mvc.Core (4)
ModelBinding\Binders\HeaderModelBinder.cs (4)
22
/// Initializes a new instance of <see cref="
HeaderModelBinder
"/>.
27
_logger = loggerFactory.CreateLogger(typeof(
HeaderModelBinder
));
31
/// Initializes a new instance of <see cref="
HeaderModelBinder
"/>.
41
_logger = loggerFactory.CreateLogger(typeof(
HeaderModelBinder
));
Microsoft.AspNetCore.Mvc.Core.Test (15)
ModelBinding\Binders\HeaderModelBinderProviderTest.cs (8)
65
var
headerModelBinder = Assert.IsType<
HeaderModelBinder
>(result);
88
var
headerModelBinder = Assert.IsType<
HeaderModelBinder
>(result);
114
var
headerModelBinder = Assert.IsType<
HeaderModelBinder
>(result);
158
var
headerModelBinder = Assert.IsType<
HeaderModelBinder
>(result);
ModelBinding\Binders\HeaderModelBinderTests.cs (3)
20
var
binder = new HeaderModelBinder(NullLoggerFactory.Instance);
47
var
binder = new HeaderModelBinder(NullLoggerFactory.Instance);
73
var
binder = new HeaderModelBinder(NullLoggerFactory.Instance);
ModelBinding\Metadata\DefaultBindingMetadataProviderTest.cs (4)
17
new ModelBinderAttribute() { BinderType = typeof(
HeaderModelBinder
) },
31
Assert.Equal(typeof(
HeaderModelBinder
), context.BindingMetadata.BinderType);
41
new ModelBinderAttribute() { BinderType = typeof(
HeaderModelBinder
) },
55
Assert.Equal(typeof(
HeaderModelBinder
), context.BindingMetadata.BinderType);