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