39 instantiations of TestChatClient
Microsoft.Extensions.AI.Tests (39)
ChatCompletion\ChatClientBuilderTest.cs (5)
16using TestChatClient expectedInnerClient = new(); 17using TestChatClient expectedOuterClient = new(); 39using TestChatClient expectedInnerClient = new(); 74using var innerClient = new TestChatClient(); 84using var innerClient = new TestChatClient();
ChatCompletion\ChatClientStructuredOutputExtensionsTests.cs (10)
29using var client = new TestChatClient 83using var client = new TestChatClient 114using var client = new TestChatClient 133using var client = new TestChatClient 152using var client = new TestChatClient 173using var client = new TestChatClient 217using var client = new TestChatClient 252using var client = new TestChatClient 283using var client = new TestChatClient 323using var client = new TestChatClient
ChatCompletion\ConfigureOptionsChatClientTests.cs (3)
19Assert.Throws<ArgumentNullException>("configure", () => new ConfigureOptionsChatClient(new TestChatClient(), null!)); 25using var innerClient = new TestChatClient(); 41using IChatClient innerClient = new TestChatClient
ChatCompletion\DependencyInjectionPatterns.cs (4)
18ServiceCollection.AddChatClient(services => new TestChatClient { Services = services }) 41using var singleton = new TestChatClient(); 65ServiceCollection.AddKeyedChatClient("mykey", services => new TestChatClient { Services = services }) 90using var singleton = new TestChatClient();
ChatCompletion\DistributedCachingChatClientTest.cs (3)
23using var innerClient = new TestChatClient(); 72using var testClient = new TestChatClient 108using var testClient = new TestChatClient
ChatCompletion\FunctionInvokingChatClientTests.cs (5)
32using TestChatClient innerClient = new(); 362using var innerClient = new TestChatClient 517using var innerClient = new TestChatClient 571using var innerClient = new TestChatClient 665using var innerClient = new TestChatClient
ChatCompletion\LoggingChatClientTests.cs (3)
21Assert.Throws<ArgumentNullException>("logger", () => new LoggingChatClient(new TestChatClient(), null!)); 27using var innerClient = new TestChatClient(); 55using IChatClient innerClient = new TestChatClient
ChatCompletion\OpenTelemetryChatClientTests.cs (1)
36using var innerClient = new TestChatClient
ChatCompletion\UseDelegateChatClientTests.cs (5)
18using var client = new TestChatClient(); 42using IChatClient innerClient = new TestChatClient 91using IChatClient innerClient = new TestChatClient 133using IChatClient innerClient = new TestChatClient 184using IChatClient innerClient = new TestChatClient
33 references to TestChatClient
Microsoft.Extensions.AI.Tests (33)
ChatCompletion\ChatClientBuilderTest.cs (5)
16using TestChatClient expectedInnerClient = new(); 17using TestChatClient expectedOuterClient = new(); 39using TestChatClient expectedInnerClient = new(); 74using var innerClient = new TestChatClient(); 84using var innerClient = new TestChatClient();
ChatCompletion\ChatClientStructuredOutputExtensionsTests.cs (10)
29using var client = new TestChatClient 83using var client = new TestChatClient 114using var client = new TestChatClient 133using var client = new TestChatClient 152using var client = new TestChatClient 173using var client = new TestChatClient 217using var client = new TestChatClient 252using var client = new TestChatClient 283using var client = new TestChatClient 323using var client = new TestChatClient
ChatCompletion\ConfigureOptionsChatClientTests.cs (1)
25using var innerClient = new TestChatClient();
ChatCompletion\DependencyInjectionPatterns.cs (6)
34Assert.IsType<TestChatClient>(instance.InnerClient); 41using var singleton = new TestChatClient(); 58Assert.IsType<TestChatClient>(instance.InnerClient); 83Assert.IsType<TestChatClient>(instance.InnerClient); 90using var singleton = new TestChatClient(); 109Assert.IsType<TestChatClient>(instance.InnerClient);
ChatCompletion\DistributedCachingChatClientTest.cs (3)
23using var innerClient = new TestChatClient(); 72using var testClient = new TestChatClient 108using var testClient = new TestChatClient
ChatCompletion\FunctionInvokingChatClientTests.cs (5)
32using TestChatClient innerClient = new(); 362using var innerClient = new TestChatClient 517using var innerClient = new TestChatClient 571using var innerClient = new TestChatClient 665using var innerClient = new TestChatClient
ChatCompletion\LoggingChatClientTests.cs (1)
27using var innerClient = new TestChatClient();
ChatCompletion\OpenTelemetryChatClientTests.cs (1)
36using var innerClient = new TestChatClient
ChatCompletion\UseDelegateChatClientTests.cs (1)
18using var client = new TestChatClient();