6 references to UseLogging
Microsoft.Extensions.AI.Tests (6)
ChatCompletion\LoggingChatClientTests.cs (6)
29
Assert.Null(innerClient.AsBuilder().
UseLogging
(NullLoggerFactory.Instance).Build().GetService(typeof(LoggingChatClient)));
30
Assert.Same(innerClient, innerClient.AsBuilder().
UseLogging
(NullLoggerFactory.Instance).Build().GetService(typeof(IChatClient)));
33
Assert.NotNull(innerClient.AsBuilder().
UseLogging
(factory).Build().GetService(typeof(LoggingChatClient)));
38
Assert.NotNull(innerClient.AsBuilder().
UseLogging
().Build(services).GetService(typeof(LoggingChatClient)));
39
Assert.NotNull(innerClient.AsBuilder().
UseLogging
(null).Build(services).GetService(typeof(LoggingChatClient)));
40
Assert.Null(innerClient.AsBuilder().
UseLogging
(NullLoggerFactory.Instance).Build(services).GetService(typeof(LoggingChatClient)));