14 instantiations of FakeLoggerProvider
Aspire.Hosting.Testing.Tests (1)
ResourceLoggerForwarderServiceTests.cs (1)
57var fakeLoggerProvider = new FakeLoggerProvider();
Microsoft.Extensions.AI.Integration.Tests (4)
ChatClientIntegrationTests.cs (4)
514using ILoggerFactory loggerFactory = LoggerFactory.Create(b => b.AddProvider(new FakeLoggerProvider(collector)).SetMinimumLevel(LogLevel.Trace)); 533using ILoggerFactory loggerFactory = LoggerFactory.Create(b => b.AddProvider(new FakeLoggerProvider(collector)).SetMinimumLevel(LogLevel.Trace)); 555using ILoggerFactory loggerFactory = LoggerFactory.Create(b => b.AddProvider(new FakeLoggerProvider(collector)).SetMinimumLevel(LogLevel.Trace)); 581using ILoggerFactory loggerFactory = LoggerFactory.Create(b => b.AddProvider(new FakeLoggerProvider(collector)).SetMinimumLevel(LogLevel.Trace));
Microsoft.Extensions.AI.Tests (6)
ChatCompletion\FunctionInvokingChatClientTests.cs (1)
419c.AddLogging(b => b.AddProvider(new FakeLoggerProvider(collector)).SetMinimumLevel(level));
ChatCompletion\LoggingChatClientTests.cs (2)
52c.AddLogging(b => b.AddProvider(new FakeLoggerProvider(collector)).SetMinimumLevel(level)); 98using ILoggerFactory loggerFactory = LoggerFactory.Create(b => b.AddProvider(new FakeLoggerProvider(collector)).SetMinimumLevel(level));
ChatCompletion\OpenTelemetryChatClientTests.cs (1)
34using ILoggerFactory loggerFactory = LoggerFactory.Create(b => b.AddProvider(new FakeLoggerProvider(collector)));
Embeddings\LoggingEmbeddingGeneratorTests.cs (1)
51c.AddLogging(b => b.AddProvider(new FakeLoggerProvider(collector)).SetMinimumLevel(level));
Embeddings\OpenTelemetryEmbeddingGeneratorTests.cs (1)
29using ILoggerFactory loggerFactory = LoggerFactory.Create(b => b.AddProvider(new FakeLoggerProvider(collector)));
Microsoft.Extensions.Diagnostics.Testing (1)
Logging\FakeLoggerT.cs (1)
46using var provider = new FakeLoggerProvider();
Microsoft.Extensions.Diagnostics.Testing.Tests (2)
Logging\FakeLoggerProviderTests.cs (2)
14using var loggerProvider = new FakeLoggerProvider(); 38using var provider = new FakeLoggerProvider();
9 references to FakeLoggerProvider
Aspire.Hosting.Testing.Tests (1)
ResourceLoggerForwarderServiceTests.cs (1)
57var fakeLoggerProvider = new FakeLoggerProvider();
Microsoft.Extensions.Diagnostics.Testing (5)
Logging\FakeLoggerBuilderExtensions.cs (2)
30builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<ILoggerProvider, FakeLoggerProvider>()); 48builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<ILoggerProvider, FakeLoggerProvider>());
Logging\FakeLoggerProvider.cs (2)
26/// Initializes a new instance of the <see cref="FakeLoggerProvider"/> class. 35/// Finalizes an instance of the <see cref="FakeLoggerProvider"/> class.
Logging\FakeLoggerT.cs (1)
46using var provider = new FakeLoggerProvider();
Microsoft.Extensions.Diagnostics.Testing.Tests (2)
Logging\FakeLoggerProviderTests.cs (2)
14using var loggerProvider = new FakeLoggerProvider(); 38using var provider = new FakeLoggerProvider();
Microsoft.Extensions.Hosting.Testing.Tests (1)
FakeHostTests.cs (1)
22Assert.Contains(host.Services.GetServices<ILoggerProvider>(), x => x is FakeLoggerProvider);