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