36 instantiations of TestChatClient
Microsoft.Extensions.AI.Tests (36)
ChatCompletion\ChatClientBuilderTest.cs (4)
16using TestChatClient expectedInnerClient = new(); 17using TestChatClient expectedOuterClient = new(); 39using TestChatClient expectedInnerClient = new(); 74using 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 215using var client = new TestChatClient 250using var client = new TestChatClient 281using var client = new TestChatClient 321using 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(); 71using var testClient = new TestChatClient 107using var testClient = new TestChatClient
ChatCompletion\FunctionInvokingChatClientTests.cs (4)
32using TestChatClient innerClient = new(); 362using var innerClient = new TestChatClient 511using var innerClient = new TestChatClient 580using var innerClient = new TestChatClient
ChatCompletion\LoggingChatClientTests.cs (2)
21Assert.Throws<ArgumentNullException>("logger", () => new LoggingChatClient(new TestChatClient(), null!)); 36using 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
30 references to TestChatClient
Microsoft.Extensions.AI.Tests (30)
ChatCompletion\ChatClientBuilderTest.cs (4)
16using TestChatClient expectedInnerClient = new(); 17using TestChatClient expectedOuterClient = new(); 39using TestChatClient expectedInnerClient = new(); 74using 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 215using var client = new TestChatClient 250using var client = new TestChatClient 281using var client = new TestChatClient 321using 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(); 71using var testClient = new TestChatClient 107using var testClient = new TestChatClient
ChatCompletion\FunctionInvokingChatClientTests.cs (4)
32using TestChatClient innerClient = new(); 362using var innerClient = new TestChatClient 511using var innerClient = new TestChatClient 580using var innerClient = new TestChatClient
ChatCompletion\OpenTelemetryChatClientTests.cs (1)
36using var innerClient = new TestChatClient
ChatCompletion\UseDelegateChatClientTests.cs (1)
18using var client = new TestChatClient();