13 instantiations of DefaultOutputFormatterSelector
Microsoft.AspNetCore.Mvc.Core.Test (13)
AcceptedAtActionResultTests.cs (1)
272
new
DefaultOutputFormatterSelector
(options, NullLoggerFactory.Instance),
AcceptedAtRouteResultTests.cs (1)
180
new
DefaultOutputFormatterSelector
(options, NullLoggerFactory.Instance),
AcceptedResultTests.cs (1)
137
new
DefaultOutputFormatterSelector
(options, NullLoggerFactory.Instance),
CreatedAtActionResultTests.cs (1)
92
new
DefaultOutputFormatterSelector
(options, NullLoggerFactory.Instance),
CreatedAtRouteResultTests.cs (1)
106
new
DefaultOutputFormatterSelector
(options, NullLoggerFactory.Instance),
CreatedResultTests.cs (1)
139
new
DefaultOutputFormatterSelector
(options, NullLoggerFactory.Instance),
HttpNotFoundObjectResultTest.cs (1)
72
new
DefaultOutputFormatterSelector
(options, NullLoggerFactory.Instance),
HttpOkObjectResultTest.cs (1)
74
new
DefaultOutputFormatterSelector
(options, NullLoggerFactory.Instance),
Infrastructure\ControllerActionInvokerTest.cs (1)
1711
new
DefaultOutputFormatterSelector
(options, NullLoggerFactory.Instance),
Infrastructure\DefaultApiProblemDetailsWriterTest.cs (1)
233
new
DefaultOutputFormatterSelector
(mvcOptions, NullLoggerFactory.Instance),
Infrastructure\DefaultOutputFormatterSelectorTest.cs (1)
376
return new
DefaultOutputFormatterSelector
(Options.Create(options), NullLoggerFactory.Instance);
Infrastructure\ObjectResultExecutorTest.cs (1)
481
var selector = new
DefaultOutputFormatterSelector
(optionsAccessor, NullLoggerFactory.Instance);
ObjectResultTests.cs (1)
161
new
DefaultOutputFormatterSelector
(options, NullLoggerFactory.Instance),
18 references to DefaultOutputFormatterSelector
Microsoft.AspNetCore.Mvc.Core (5)
DependencyInjection\MvcCoreServiceCollectionExtensions.cs (1)
234
services.TryAddSingleton<OutputFormatterSelector,
DefaultOutputFormatterSelector
>();
Infrastructure\DefaultOutputFormatterSelector.cs (2)
33
/// Initializes a new instance of <see cref="
DefaultOutputFormatterSelector
"/>
42
_logger = loggerFactory.CreateLogger<
DefaultOutputFormatterSelector
>();
Infrastructure\OutputFormatterSelector.cs (2)
14
/// is <see cref="
DefaultOutputFormatterSelector
"/>. The <see cref="
DefaultOutputFormatterSelector
"/> implements
Microsoft.AspNetCore.Mvc.Core.Test (13)
Infrastructure\DefaultOutputFormatterSelectorTest.cs (12)
25
var
selector = CreateSelector(new IOutputFormatter[] { });
55
var
selector = CreateSelector(formatters);
84
var
selector = CreateSelector(formatters);
155
var
selector = CreateSelector(formatters);
186
var
selector = CreateSelector(formatters);
214
var
selector = CreateSelector(formatters);
249
var
selector = CreateSelector(options);
278
var
selector = CreateSelector(formatters);
307
var
selector = CreateSelector(formatters);
341
var
selector = CreateSelector(formatters);
363
private static
DefaultOutputFormatterSelector
CreateSelector(IEnumerable<IOutputFormatter> formatters)
374
private static
DefaultOutputFormatterSelector
CreateSelector(MvcOptions options)
Infrastructure\ObjectResultExecutorTest.cs (1)
481
var
selector = new DefaultOutputFormatterSelector(optionsAccessor, NullLoggerFactory.Instance);