13 references to CreateFormatter
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\MvcCoreMvcOptionsSetup.cs (1)
81
var jsonOutputFormatter = SystemTextJsonOutputFormatter.
CreateFormatter
(_jsonOptions.Value);
Microsoft.AspNetCore.Mvc.Core.Test (12)
CreatedAtActionResultTests.cs (1)
88
options.Value.OutputFormatters.Add(SystemTextJsonOutputFormatter.
CreateFormatter
(new JsonOptions()));
CreatedAtRouteResultTests.cs (1)
102
options.Value.OutputFormatters.Add(SystemTextJsonOutputFormatter.
CreateFormatter
(new JsonOptions()));
CreatedResultTests.cs (1)
135
options.Value.OutputFormatters.Add(SystemTextJsonOutputFormatter.
CreateFormatter
(new JsonOptions()));
Formatters\FormatFilterTest.cs (1)
465
MvcOptions.OutputFormatters.Add(SystemTextJsonOutputFormatter.
CreateFormatter
(new JsonOptions()));
Formatters\SystemTextJsonOutputFormatterTest.cs (6)
20
return SystemTextJsonOutputFormatter.
CreateFormatter
(new JsonOptions());
30
var formatter = SystemTextJsonOutputFormatter.
CreateFormatter
(jsonOptions);
177
var formatter = SystemTextJsonOutputFormatter.
CreateFormatter
(jsonOptions);
221
var formatter = SystemTextJsonOutputFormatter.
CreateFormatter
(jsonOptions);
265
var exception = Assert.Throws<InvalidOperationException>(() => SystemTextJsonOutputFormatter.
CreateFormatter
(jsonOptions));
284
var stjOutputFormatter = SystemTextJsonOutputFormatter.
CreateFormatter
(jsonOptions);
HttpNotFoundObjectResultTest.cs (1)
68
options.Value.OutputFormatters.Add(SystemTextJsonOutputFormatter.
CreateFormatter
(new JsonOptions()));
HttpOkObjectResultTest.cs (1)
70
options.Value.OutputFormatters.Add(SystemTextJsonOutputFormatter.
CreateFormatter
(new JsonOptions()));