9 references to FakeLogCollector
Microsoft.Extensions.Diagnostics.Testing (1)
Logging\FakeLogCollector.cs (1)
46
return new
FakeLogCollector
(Options.Options.Create(Throw.IfNull(options)));
Microsoft.Extensions.Diagnostics.Testing.Tests (3)
Logging\FakeLogCollectorTests.cs (3)
82
var collector = new
FakeLogCollector
(Microsoft.Extensions.Options.Options.Create(options));
113
Assert.Throws<ArgumentNullException>(() => new
FakeLogCollector
(null!));
114
Assert.Throws<ArgumentException>(() => new
FakeLogCollector
(Microsoft.Extensions.Options.Options.Create((FakeLogCollectorOptions)null!)));
Microsoft.Extensions.Http.Diagnostics.Tests (5)
Logging\HttpClientLoggerTest.cs (5)
308
new
FakeLogCollector
(
414
var fakeLogger = new FakeLogger<HttpClientLogger>(new
FakeLogCollector
(Options.Options.Create(new FakeLogCollectorOptions())));
511
new
FakeLogCollector
(
624
var fakeLogger = new FakeLogger<HttpClientLogger>(new
FakeLogCollector
(Options.Options.Create(new FakeLogCollectorOptions())));
894
var fakeLogger = new FakeLogger<HttpClientLogger>(new
FakeLogCollector
(Options.Options.Create(new FakeLogCollectorOptions())));