29 references to new
Microsoft.Extensions.Diagnostics.Testing (3)
Logging\FakeLogger.cs (1)
41
:
this
(FakeLogCollector.Create(new FakeLogCollectorOptions { OutputSink = outputSink }), category)
Logging\FakeLoggerProvider.cs (1)
71
return _loggers.GetOrAdd(categoryName ?? string.Empty, (name) =>
new
(Collector, name)
Logging\FakeLoggerT.cs (1)
30
:
base
(collector, GetNiceNameOfT())
Microsoft.Extensions.Diagnostics.Testing.Tests (17)
Logging\FakeLogCollectorTests.cs (2)
41
var logger = new
FakeLogger
(collector);
83
var logger = new
FakeLogger
(collector);
Logging\FakeLoggerTests.cs (15)
28
var logger = new
FakeLogger
(collector);
70
var logger = new
FakeLogger
();
74
logger = new
FakeLogger
();
98
logger = new
FakeLogger
();
102
logger = new
FakeLogger
();
112
var logger = new
FakeLogger
();
128
var logger = new
FakeLogger
();
149
var logger = new
FakeLogger
();
189
var logger = new
FakeLogger
(collector);
209
var logger = new
FakeLogger
(collector);
232
var logger = new
FakeLogger
(collector, category: null);
235
logger = new
FakeLogger
(collector, "Network");
238
logger = new
FakeLogger
(collector, "Storage");
257
var logger = new
FakeLogger
(collector);
275
var logger = new
FakeLogger
();
Microsoft.Extensions.Telemetry.Tests (3)
Logging\ExtendedLoggerFactoryTests.cs (1)
629
Logger = new
FakeLogger
((FakeLogCollector?)null, categoryName);
Logging\ExtendedLoggerTests.cs (1)
856
Logger = new
FakeLogger
((FakeLogCollector?)null, categoryName);
Logging\SerialExtendedLoggerTests.cs (1)
71
Logger = new
FakeLogger
((FakeLogCollector?)null, categoryName);
Microsoft.Gen.Logging.Generated.Tests (6)
LogPropertiesTests.cs (1)
24
private readonly FakeLogger _logger =
new
();
TagNameTests.cs (1)
17
var logger = new
FakeLogger
();
TagProviderTests.cs (1)
17
private readonly FakeLogger _logger =
new
();
TransitiveTests.cs (2)
17
var logger = new
FakeLogger
();
44
var logger = new
FakeLogger
();
Utils.cs (1)
69
var fakeLogger = new
FakeLogger
();