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