14 references to FakeLoggerProvider
Aspire.Hosting.Testing.Tests (1)
ResourceLoggerForwarderServiceTests.cs (1)
57
var fakeLoggerProvider = new
FakeLoggerProvider
();
Microsoft.Extensions.AI.Integration.Tests (4)
ChatClientIntegrationTests.cs (4)
514
using ILoggerFactory loggerFactory = LoggerFactory.Create(b => b.AddProvider(new
FakeLoggerProvider
(collector)).SetMinimumLevel(LogLevel.Trace));
533
using ILoggerFactory loggerFactory = LoggerFactory.Create(b => b.AddProvider(new
FakeLoggerProvider
(collector)).SetMinimumLevel(LogLevel.Trace));
555
using ILoggerFactory loggerFactory = LoggerFactory.Create(b => b.AddProvider(new
FakeLoggerProvider
(collector)).SetMinimumLevel(LogLevel.Trace));
581
using ILoggerFactory loggerFactory = LoggerFactory.Create(b => b.AddProvider(new
FakeLoggerProvider
(collector)).SetMinimumLevel(LogLevel.Trace));
Microsoft.Extensions.AI.Tests (6)
ChatCompletion\FunctionInvokingChatClientTests.cs (1)
419
c.AddLogging(b => b.AddProvider(new
FakeLoggerProvider
(collector)).SetMinimumLevel(level));
ChatCompletion\LoggingChatClientTests.cs (2)
52
c.AddLogging(b => b.AddProvider(new
FakeLoggerProvider
(collector)).SetMinimumLevel(level));
98
using ILoggerFactory loggerFactory = LoggerFactory.Create(b => b.AddProvider(new
FakeLoggerProvider
(collector)).SetMinimumLevel(level));
ChatCompletion\OpenTelemetryChatClientTests.cs (1)
34
using ILoggerFactory loggerFactory = LoggerFactory.Create(b => b.AddProvider(new
FakeLoggerProvider
(collector)));
Embeddings\LoggingEmbeddingGeneratorTests.cs (1)
51
c.AddLogging(b => b.AddProvider(new
FakeLoggerProvider
(collector)).SetMinimumLevel(level));
Embeddings\OpenTelemetryEmbeddingGeneratorTests.cs (1)
29
using ILoggerFactory loggerFactory = LoggerFactory.Create(b => b.AddProvider(new
FakeLoggerProvider
(collector)));
Microsoft.Extensions.Diagnostics.Testing (1)
Logging\FakeLoggerT.cs (1)
46
using var provider = new
FakeLoggerProvider
();
Microsoft.Extensions.Diagnostics.Testing.Tests (2)
Logging\FakeLoggerProviderTests.cs (2)
14
using var loggerProvider = new
FakeLoggerProvider
();
38
using var provider = new
FakeLoggerProvider
();