6 writes to Formatters
Microsoft.AspNetCore.Mvc.Core (1)
ObjectResult.cs (1)
25
Formatters
= new FormatterCollection<IOutputFormatter>();
Microsoft.AspNetCore.Mvc.Core.Test (5)
Infrastructure\ObjectResultExecutorTest.cs (1)
267
result.
Formatters
= new FormatterCollection<IOutputFormatter>
ObjectResultTests.cs (4)
41
Formatters
= new FormatterCollection<IOutputFormatter>()
73
Formatters
= new FormatterCollection<IOutputFormatter>()
102
Formatters
= new FormatterCollection<IOutputFormatter>()
133
Formatters
= new FormatterCollection<IOutputFormatter>()
40 references to Formatters
FormatterWebSite (4)
Controllers\DataContractSerializerController.cs (2)
20
result.
Formatters
.Add(new XmlSerializerOutputFormatter());
21
result.
Formatters
.Add(new XmlDataContractSerializerOutputFormatter());
Controllers\JsonFormatterController.cs (1)
42
objectResult.
Formatters
.Add(_indentingFormatter);
Controllers\XmlSerializerController.cs (1)
17
result.
Formatters
.Add(new XmlSerializerOutputFormatter());
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\ObjectResultExecutor.cs (1)
93
(IList<IOutputFormatter>)result.
Formatters
?? Array.Empty<IOutputFormatter>(),
Microsoft.AspNetCore.Mvc.Core.Test (33)
Infrastructure\ObjectResultExecutorTest.cs (32)
33
result.
Formatters
.Add(new TestXmlOutputFormatter());
34
result.
Formatters
.Add(new TestJsonOutputFormatter());
35
result.
Formatters
.Add(new TestStringOutputFormatter()); // This will be chosen based on the content type
58
result.
Formatters
.Add(new TestXmlOutputFormatter());
59
result.
Formatters
.Add(new TestJsonOutputFormatter());
60
result.
Formatters
.Add(new TestStringOutputFormatter()); // This will be chosen based on the content type
81
result.
Formatters
.Add(new TestXmlOutputFormatter());
82
result.
Formatters
.Add(new TestJsonOutputFormatter()); // This will be chosen based on the content type
103
result.
Formatters
.Add(new TestXmlOutputFormatter());
126
result.
Formatters
.Add(new TestXmlOutputFormatter()); // This will be chosen based on the problem details content type
127
result.
Formatters
.Add(new TestJsonOutputFormatter());
128
result.
Formatters
.Add(new TestStringOutputFormatter());
148
result.
Formatters
.Add(new TestXmlOutputFormatter()); // This will be chosen based on the problem details content type
149
result.
Formatters
.Add(new TestJsonOutputFormatter());
150
result.
Formatters
.Add(new TestStringOutputFormatter());
170
result.
Formatters
.Add(new TestXmlOutputFormatter()); // This will be chosen based on the problem details content type
171
result.
Formatters
.Add(new TestJsonOutputFormatter());
172
result.
Formatters
.Add(new TestStringOutputFormatter());
196
result.
Formatters
.Add(new TestJsonOutputFormatter()); // This will be chosen based on the Accept Headers "application/json"
197
result.
Formatters
.Add(new TestXmlOutputFormatter());
198
result.
Formatters
.Add(new TestStringOutputFormatter());
221
result.
Formatters
.Add(new TestJsonOutputFormatter());
222
result.
Formatters
.Add(new TestXmlOutputFormatter()); // This will be chosen based on the Accept Headers "application/xml"
223
result.
Formatters
.Add(new TestStringOutputFormatter());
242
result.
Formatters
.Add(new TestXmlOutputFormatter()); // This will be chosen based on the problem details added content type
243
result.
Formatters
.Add(new TestJsonOutputFormatter());
244
result.
Formatters
.Add(new TestStringOutputFormatter());
382
result.
Formatters
.Add(new TestJsonOutputFormatter());
383
result.
Formatters
.Add(new TestXmlOutputFormatter());
419
result.
Formatters
.Add(new TestJsonOutputFormatter());
420
result.
Formatters
.Add(new TestXmlOutputFormatter());
443
result.
Formatters
.Add(formatter);
ObjectResultTests.cs (1)
29
Assert.Empty(result.
Formatters
);
XmlFormattersWebSite (2)
Controllers\XmlDataContractApiController.cs (1)
29
objectResult.
Formatters
.Add(xmlFormatter);
Controllers\XmlSerializedApiController.cs (1)
29
objectResult.
Formatters
.Add(xmlFormatter);