38 instantiations of StubModelBinder
Microsoft.AspNetCore.Mvc.Core.Test (38)
ControllerBaseTest.cs (15)
2614
var binder = new
StubModelBinder
(context =>
2643
var binder = new
StubModelBinder
(context =>
2670
var binder = new
StubModelBinder
(context =>
2700
var controller = GetController(new
StubModelBinder
());
2726
var binder = new
StubModelBinder
(context =>
2759
var binder = new
StubModelBinder
(context =>
2791
var binder = new
StubModelBinder
(context =>
2825
var binder = new
StubModelBinder
(context =>
2855
StubModelBinder CreateBinder() => new
StubModelBinder
(context =>
2909
var binder = new
StubModelBinder
(context =>
2939
var binder = new
StubModelBinder
(context =>
2967
var binder = new
StubModelBinder
(context =>
3067
var binder = new
StubModelBinder
();
3104
var binder = new
StubModelBinder
();
3141
var binder = new
StubModelBinder
();
Controllers\ControllerBinderDelegateProviderTest.cs (5)
710
var binder = new
StubModelBinder
(ModelBindingResult.Success(model: null));
751
var binder = new
StubModelBinder
(ModelBindingResult.Success(model: null));
813
var binder = new
StubModelBinder
(ModelBindingResult.Success(model: null));
876
var binder = new
StubModelBinder
(ModelBindingResult.Success(model: null));
1023
var binder = new
StubModelBinder
(bindingContext =>
ModelBinding\Binders\CollectionModelBinderTest.cs (6)
242
new
StubModelBinder
(result: ModelBindingResult.Failed()),
277
new
StubModelBinder
(result: ModelBindingResult.Failed()),
317
new
StubModelBinder
(result: ModelBindingResult.Failed()),
354
new
StubModelBinder
(result: ModelBindingResult.Failed()),
396
new
StubModelBinder
(result: ModelBindingResult.Failed()),
459
var elementBinder = new
StubModelBinder
(mbc =>
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (1)
297
var innerBinder = new
StubModelBinder
();
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (2)
289
var mockBinder = new
StubModelBinder
();
357
var innerBinder = new
StubModelBinder
();
ModelBinding\Binders\KeyValuePairModelBinderTest.cs (3)
123
var innerBinder = new
StubModelBinder
(context =>
230
var mockIntBinder = new
StubModelBinder
(mbc =>
244
return new
StubModelBinder
(mbc =>
ModelBinding\ModelBindingHelperTest.cs (6)
28
var binder = new
StubModelBinder
(ModelBindingResult.Failed());
132
var binder = new
StubModelBinder
(ModelBindingResult.Failed());
213
var binder = new
StubModelBinder
(ModelBindingResult.Failed());
461
var binder = new
StubModelBinder
(ModelBindingResult.Failed());
544
var binder = new
StubModelBinder
(ModelBindingResult.Failed());
610
var binder = new
StubModelBinder
();
33 references to StubModelBinder
Microsoft.AspNetCore.Mvc.Core.Test (33)
ControllerBaseTest.cs (16)
2614
var
binder = new StubModelBinder(context =>
2643
var
binder = new StubModelBinder(context =>
2670
var
binder = new StubModelBinder(context =>
2726
var
binder = new StubModelBinder(context =>
2759
var
binder = new StubModelBinder(context =>
2791
var
binder = new StubModelBinder(context =>
2825
var
binder = new StubModelBinder(context =>
2855
StubModelBinder
CreateBinder() => new StubModelBinder(context =>
2874
var
binder1 = CreateBinder();
2885
var
binder2 = CreateBinder();
2909
var
binder = new StubModelBinder(context =>
2939
var
binder = new StubModelBinder(context =>
2967
var
binder = new StubModelBinder(context =>
3067
var
binder = new StubModelBinder();
3104
var
binder = new StubModelBinder();
3141
var
binder = new StubModelBinder();
Controllers\ControllerBinderDelegateProviderTest.cs (5)
710
var
binder = new StubModelBinder(ModelBindingResult.Success(model: null));
751
var
binder = new StubModelBinder(ModelBindingResult.Success(model: null));
813
var
binder = new StubModelBinder(ModelBindingResult.Success(model: null));
876
var
binder = new StubModelBinder(ModelBindingResult.Success(model: null));
1023
var
binder = new StubModelBinder(bindingContext =>
ModelBinding\Binders\CollectionModelBinderTest.cs (1)
459
var
elementBinder = new StubModelBinder(mbc =>
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (1)
297
var
innerBinder = new StubModelBinder();
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (2)
289
var
mockBinder = new StubModelBinder();
357
var
innerBinder = new StubModelBinder();
ModelBinding\Binders\KeyValuePairModelBinderTest.cs (2)
123
var
innerBinder = new StubModelBinder(context =>
230
var
mockIntBinder = new StubModelBinder(mbc =>
ModelBinding\ModelBindingHelperTest.cs (6)
28
var
binder = new StubModelBinder(ModelBindingResult.Failed());
132
var
binder = new StubModelBinder(ModelBindingResult.Failed());
213
var
binder = new StubModelBinder(ModelBindingResult.Failed());
461
var
binder = new StubModelBinder(ModelBindingResult.Failed());
544
var
binder = new StubModelBinder(ModelBindingResult.Failed());
610
var
binder = new StubModelBinder();