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