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