8 instantiations of TestInputFormatter
Microsoft.AspNetCore.Mvc.Core.Test (8)
ModelBinding\Binders\BodyModelBinderTests.cs (8)
566
var canReadFormatter1 = new
TestInputFormatter
(canRead: true);
567
var canReadFormatter2 = new
TestInputFormatter
(canRead: true);
570
new
TestInputFormatter
(canRead: false),
571
new
TestInputFormatter
(canRead: false),
597
new
TestInputFormatter
(canRead: false),
598
new
TestInputFormatter
(canRead: true),
626
new
TestInputFormatter
(canRead: false),
627
new
TestInputFormatter
(canRead: false),
6 references to TestInputFormatter
Microsoft.AspNetCore.Mvc.Core.Test (6)
ModelBinding\Binders\BodyModelBinderTests.cs (6)
566
var
canReadFormatter1 = new TestInputFormatter(canRead: true);
567
var
canReadFormatter2 = new TestInputFormatter(canRead: true);
614
Assert.Equal($"Rejected input formatter '{typeof(
TestInputFormatter
)}' for content type 'application/json'.", writeList[1].State.ToString());
615
Assert.Equal($"Selected input formatter '{typeof(
TestInputFormatter
)}' for content type 'application/json'.", writeList[2].State.ToString());
646
$"Rejected input formatter '{typeof(
TestInputFormatter
)}' for content type 'multipart/form-data'.", write.State.ToString()),
648
$"Rejected input formatter '{typeof(
TestInputFormatter
)}' for content type 'multipart/form-data'.", write.State.ToString()),