206 instantiations of TestChatClient
Microsoft.Extensions.AI.Tests (206)
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 (11)
32
using var client = new
TestChatClient
109
using var client = new
TestChatClient
163
using var client = new
TestChatClient
207
using var client = new
TestChatClient
240
using var client = new
TestChatClient
259
using var client = new
TestChatClient
278
using var client = new
TestChatClient
299
using var client = new
TestChatClient
334
using var client = new
TestChatClient
366
using var client = new
TestChatClient
421
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 (8)
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
();
122
? sc.AddChatClient(services => new
TestChatClient
(), lifetime.Value)
123
: sc.AddChatClient(services => new
TestChatClient
());
144
? sc.AddKeyedChatClient("key", services => new
TestChatClient
(), lifetime.Value)
145
: sc.AddKeyedChatClient("key", services => new
TestChatClient
());
ChatCompletion\DistributedCachingChatClientTest.cs (16)
24
using var innerClient = new
TestChatClient
();
77
using var testClient = new
TestChatClient
135
using var testClient = new
TestChatClient
172
using var testClient = new
TestChatClient
205
using var testClient = new
TestChatClient
275
using var testClient = new
TestChatClient
322
using var testClient = new
TestChatClient
400
using var testClient = new
TestChatClient
439
using var testClient = new
TestChatClient
478
using var testClient = new
TestChatClient
517
using var testClient = new
TestChatClient
554
using var testClient = new
TestChatClient
605
using var testClient = new
TestChatClient
651
using var testClient = new
TestChatClient
706
using var testClient = new
TestChatClient
740
using var testClient = new
TestChatClient
ChatCompletion\FunctionInvokingChatClientApprovalsTests.cs (8)
902
using var innerClient = new
TestChatClient
982
using var innerClient = new
TestChatClient
1429
using (var innerClient = new
TestChatClient
1440
using (var innerClient = new
TestChatClient
1493
using var innerClient = new
TestChatClient
{ GetStreamingResponseAsyncCallback = YieldInnerClientUpdates };
1574
using var innerClient = new
TestChatClient
{ GetStreamingResponseAsyncCallback = YieldInnerClientUpdates };
1964
using var innerClient = new
TestChatClient
2051
using var innerClient = new
TestChatClient
ChatCompletion\FunctionInvokingChatClientTests.cs (34)
34
using TestChatClient innerClient =
new
();
48
using TestChatClient innerClient =
new
();
372
using var innerClient = new
TestChatClient
453
using var innerClient = new
TestChatClient
534
using var innerClient = new
TestChatClient
662
using var innerClient = new
TestChatClient
706
using var innerClient = new
TestChatClient
751
using var innerClient = new
TestChatClient
799
using var innerClient = new
TestChatClient
1180
using var innerClient = new
TestChatClient
1238
using var innerClient = new
TestChatClient
1355
using var innerChatClient = new
TestChatClient
1428
using var innerClient = new
TestChatClient
1634
using var innerChatClient = new
TestChatClient
1735
using var innerClient = new
TestChatClient
2035
using var innerClient = new
TestChatClient
2088
using var innerClient = new
TestChatClient
2151
using var innerClient = new
TestChatClient
2213
using var innerClient = new
TestChatClient
2282
using var innerClient = new
TestChatClient
2378
using var innerClient = new
TestChatClient
2472
using var innerClient = new
TestChatClient
2580
using var innerClient = new
TestChatClient
2678
using var innerClient = new
TestChatClient
2782
using var innerClient = new
TestChatClient
2879
using var innerClient = new
TestChatClient
2958
using var innerClient = new
TestChatClient
3059
using var innerClient = new
TestChatClient
3165
using var innerClient = new
TestChatClient
3383
using var innerClient = new
TestChatClient
3420
using var innerClient = new
TestChatClient
3467
using var innerClient = new
TestChatClient
3527
using var innerClient = new
TestChatClient
3599
using var innerClient = new
TestChatClient
ChatCompletion\ImageGeneratingChatClientTests.cs (14)
18
using var innerClient = new
TestChatClient
();
35
using var innerClient = new
TestChatClient
70
using var innerClient = new
TestChatClient
117
using var innerClient = new
TestChatClient
158
using var innerClient = new
TestChatClient
();
174
using var innerClient = new
TestChatClient
();
191
using var innerClient = new
TestChatClient
();
216
using var innerClient = new
TestChatClient
257
using var innerClient = new
TestChatClient
279
using var innerClient = new
TestChatClient
312
using var innerClient = new
TestChatClient
348
using var innerClient = new
TestChatClient
399
using var innerClient = new
TestChatClient
470
using var innerClient = new
TestChatClient
ChatCompletion\LoggingChatClientTests.cs (4)
21
Assert.Throws<ArgumentNullException>("logger", () => new LoggingChatClient(new
TestChatClient
(), null!));
27
using var innerClient = new
TestChatClient
();
55
using IChatClient innerClient = new
TestChatClient
100
using IChatClient innerClient = new
TestChatClient
ChatCompletion\OpenTelemetryChatClientTests.cs (9)
36
using var innerClient = new
TestChatClient
399
using var innerClient = new
TestChatClient
583
using var innerClient = new
TestChatClient
653
using var innerClient = new
TestChatClient
818
using var innerClient = new
TestChatClient
905
using var innerClient = new
TestChatClient
975
using var innerClient = new
TestChatClient
1019
using var innerClient = new
TestChatClient
1067
using var innerClient = new
TestChatClient
ChatCompletion\ReducingChatClientTests.cs (5)
25
using var innerClient = new
TestChatClient
();
53
using var innerClient = new
TestChatClient
105
using var innerClient = new
TestChatClient
126
using var innerClient = new
TestChatClient
();
145
using var innerClient = new
TestChatClient
ChatCompletion\UseDelegateChatClientTests.cs (5)
19
using var client = new
TestChatClient
();
34
using IChatClient innerClient = new
TestChatClient
83
using IChatClient innerClient = new
TestChatClient
125
using IChatClient innerClient = new
TestChatClient
176
using IChatClient innerClient = new
TestChatClient
ChatReduction\SummarizingChatReducerTests.cs (12)
29
using var chatClient = new
TestChatClient
();
38
using var chatClient = new
TestChatClient
();
45
using var chatClient = new
TestChatClient
();
53
using var chatClient = new
TestChatClient
();
64
using var chatClient = new
TestChatClient
();
89
using var chatClient = new
TestChatClient
();
133
using var chatClient = new
TestChatClient
();
179
using var chatClient = new
TestChatClient
();
236
using var chatClient = new
TestChatClient
();
271
using var chatClient = new
TestChatClient
();
297
using var chatClient = new
TestChatClient
();
325
using var chatClientForSummarization = new
TestChatClient
();
ChatRouting\FailoverChatClientTests.cs (43)
33
using var selected = new
TestChatClient
();
120
using var failing = new
TestChatClient
149
using var failing = new
TestChatClient
175
using var failing = new
TestChatClient
207
using var inner = new
TestChatClient
244
using var first = new
TestChatClient
258
using var second = new
TestChatClient
298
using var inner = new
TestChatClient
335
using var inner = new
TestChatClient
363
using var failing = new
TestChatClient
368
using var working = new
TestChatClient
413
using var inner = new
TestChatClient
433
using var inner = new
TestChatClient
457
using var inner = new
TestChatClient
484
using var nullClient = new
TestChatClient
516
using var inner = new
TestChatClient
541
using var inner = new
TestChatClient
567
using var inner = new
TestChatClient
611
using var inner = new
TestChatClient
639
using var failing = new
TestChatClient
643
using var working = new
TestChatClient
662
using var inner = new
TestChatClient
709
using var inner = new
TestChatClient
744
using var first = new
TestChatClient
748
using var second = new
TestChatClient
768
using var first = new
TestChatClient
772
using var second = new
TestChatClient
796
using var first = new
TestChatClient
800
using var second = new
TestChatClient
823
using var inner = new
TestChatClient
849
using var failing = new
TestChatClient
853
using var working = new
TestChatClient
871
using var failing = new
TestChatClient
876
using var working = new
TestChatClient
896
using var failing = new
TestChatClient
900
using var working = new
TestChatClient
931
using var inner = new
TestChatClient
979
using var failing = new
TestChatClient
983
using var working = new
TestChatClient
1021
using var inner = new
TestChatClient
1064
using var inner = new
TestChatClient
1093
using var inner = new
TestChatClient
1120
using var inner = new
TestChatClient
ChatRouting\OrderedFailoverChatClientTests.cs (22)
19
using var inner = new
TestChatClient
();
30
using var first = new
TestChatClient
39
using var second = new
TestChatClient
60
using var first = new
TestChatClient
70
using var second = new
TestChatClient
90
using var inner = new
TestChatClient
110
using var first = new
TestChatClient
114
using var second = new
TestChatClient
130
using var first = new
TestChatClient
138
using var second = new
TestChatClient
157
using var first = new
TestChatClient
170
using var second = new
TestChatClient
194
using var first = new
TestChatClient
198
using var second = new
TestChatClient
218
using var inner = new
TestChatClient
235
using var firstInner = new
TestChatClient
246
using var secondInner = new
TestChatClient
277
using var first = new
TestChatClient
281
using var second = new
TestChatClient
299
using var first = new
TestChatClient
303
using var second = new
TestChatClient
355
using var leaf = new
TestChatClient
ChatRouting\SemanticRoutingChatClientTests.cs (7)
19
using var client = new
TestChatClient
();
98
using var code = new
TestChatClient
102
using var writing = new
TestChatClient
146
using var code = new
TestChatClient
151
using var writing = new
TestChatClient
189
using var profiled = new
TestChatClient
195
using var defaultClient = new
TestChatClient
197 references to TestChatClient
Microsoft.Extensions.AI.Tests (197)
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 (11)
32
using
var
client = new TestChatClient
109
using
var
client = new TestChatClient
163
using
var
client = new TestChatClient
207
using
var
client = new TestChatClient
240
using
var
client = new TestChatClient
259
using
var
client = new TestChatClient
278
using
var
client = new TestChatClient
299
using
var
client = new TestChatClient
334
using
var
client = new TestChatClient
366
using
var
client = new TestChatClient
421
using
var
client = new TestChatClient
ChatCompletion\ConfigureOptionsChatClientTests.cs (1)
25
using
var
innerClient = new TestChatClient();
ChatCompletion\DependencyInjectionPatterns.cs (8)
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);
130
Assert.IsType<
TestChatClient
>(sd.ImplementationFactory(null!));
153
Assert.IsType<
TestChatClient
>(sd.KeyedImplementationFactory(null!, null!));
ChatCompletion\DistributedCachingChatClientTest.cs (16)
24
using
var
innerClient = new TestChatClient();
77
using
var
testClient = new TestChatClient
135
using
var
testClient = new TestChatClient
172
using
var
testClient = new TestChatClient
205
using
var
testClient = new TestChatClient
275
using
var
testClient = new TestChatClient
322
using
var
testClient = new TestChatClient
400
using
var
testClient = new TestChatClient
439
using
var
testClient = new TestChatClient
478
using
var
testClient = new TestChatClient
517
using
var
testClient = new TestChatClient
554
using
var
testClient = new TestChatClient
605
using
var
testClient = new TestChatClient
651
using
var
testClient = new TestChatClient
706
using
var
testClient = new TestChatClient
740
using
var
testClient = new TestChatClient
ChatCompletion\FunctionInvokingChatClientApprovalsTests.cs (8)
902
using
var
innerClient = new TestChatClient
982
using
var
innerClient = new TestChatClient
1429
using (
var
innerClient = new TestChatClient
1440
using (
var
innerClient = new TestChatClient
1493
using
var
innerClient = new TestChatClient { GetStreamingResponseAsyncCallback = YieldInnerClientUpdates };
1574
using
var
innerClient = new TestChatClient { GetStreamingResponseAsyncCallback = YieldInnerClientUpdates };
1964
using
var
innerClient = new TestChatClient
2051
using
var
innerClient = new TestChatClient
ChatCompletion\FunctionInvokingChatClientTests.cs (34)
34
using
TestChatClient
innerClient = new();
48
using
TestChatClient
innerClient = new();
372
using
var
innerClient = new TestChatClient
453
using
var
innerClient = new TestChatClient
534
using
var
innerClient = new TestChatClient
662
using
var
innerClient = new TestChatClient
706
using
var
innerClient = new TestChatClient
751
using
var
innerClient = new TestChatClient
799
using
var
innerClient = new TestChatClient
1180
using
var
innerClient = new TestChatClient
1238
using
var
innerClient = new TestChatClient
1355
using
var
innerChatClient = new TestChatClient
1428
using
var
innerClient = new TestChatClient
1634
using
var
innerChatClient = new TestChatClient
1735
using
var
innerClient = new TestChatClient
2035
using
var
innerClient = new TestChatClient
2088
using
var
innerClient = new TestChatClient
2151
using
var
innerClient = new TestChatClient
2213
using
var
innerClient = new TestChatClient
2282
using
var
innerClient = new TestChatClient
2378
using
var
innerClient = new TestChatClient
2472
using
var
innerClient = new TestChatClient
2580
using
var
innerClient = new TestChatClient
2678
using
var
innerClient = new TestChatClient
2782
using
var
innerClient = new TestChatClient
2879
using
var
innerClient = new TestChatClient
2958
using
var
innerClient = new TestChatClient
3059
using
var
innerClient = new TestChatClient
3165
using
var
innerClient = new TestChatClient
3383
using
var
innerClient = new TestChatClient
3420
using
var
innerClient = new TestChatClient
3467
using
var
innerClient = new TestChatClient
3527
using
var
innerClient = new TestChatClient
3599
using
var
innerClient = new TestChatClient
ChatCompletion\ImageGeneratingChatClientTests.cs (14)
18
using
var
innerClient = new TestChatClient();
35
using
var
innerClient = new TestChatClient
70
using
var
innerClient = new TestChatClient
117
using
var
innerClient = new TestChatClient
158
using
var
innerClient = new TestChatClient();
174
using
var
innerClient = new TestChatClient();
191
using
var
innerClient = new TestChatClient();
216
using
var
innerClient = new TestChatClient
257
using
var
innerClient = new TestChatClient
279
using
var
innerClient = new TestChatClient
312
using
var
innerClient = new TestChatClient
348
using
var
innerClient = new TestChatClient
399
using
var
innerClient = new TestChatClient
470
using
var
innerClient = new TestChatClient
ChatCompletion\LoggingChatClientTests.cs (1)
27
using
var
innerClient = new TestChatClient();
ChatCompletion\OpenTelemetryChatClientTests.cs (9)
36
using
var
innerClient = new TestChatClient
399
using
var
innerClient = new TestChatClient
583
using
var
innerClient = new TestChatClient
653
using
var
innerClient = new TestChatClient
818
using
var
innerClient = new TestChatClient
905
using
var
innerClient = new TestChatClient
975
using
var
innerClient = new TestChatClient
1019
using
var
innerClient = new TestChatClient
1067
using
var
innerClient = new TestChatClient
ChatCompletion\ReducingChatClientTests.cs (5)
25
using
var
innerClient = new TestChatClient();
53
using
var
innerClient = new TestChatClient
105
using
var
innerClient = new TestChatClient
126
using
var
innerClient = new TestChatClient();
145
using
var
innerClient = new TestChatClient
ChatCompletion\UseDelegateChatClientTests.cs (1)
19
using
var
client = new TestChatClient();
ChatReduction\SummarizingChatReducerTests.cs (12)
29
using
var
chatClient = new TestChatClient();
38
using
var
chatClient = new TestChatClient();
45
using
var
chatClient = new TestChatClient();
53
using
var
chatClient = new TestChatClient();
64
using
var
chatClient = new TestChatClient();
89
using
var
chatClient = new TestChatClient();
133
using
var
chatClient = new TestChatClient();
179
using
var
chatClient = new TestChatClient();
236
using
var
chatClient = new TestChatClient();
271
using
var
chatClient = new TestChatClient();
297
using
var
chatClient = new TestChatClient();
325
using
var
chatClientForSummarization = new TestChatClient();
ChatRouting\FailoverChatClientTests.cs (43)
33
using
var
selected = new TestChatClient();
120
using
var
failing = new TestChatClient
149
using
var
failing = new TestChatClient
175
using
var
failing = new TestChatClient
207
using
var
inner = new TestChatClient
244
using
var
first = new TestChatClient
258
using
var
second = new TestChatClient
298
using
var
inner = new TestChatClient
335
using
var
inner = new TestChatClient
363
using
var
failing = new TestChatClient
368
using
var
working = new TestChatClient
413
using
var
inner = new TestChatClient
433
using
var
inner = new TestChatClient
457
using
var
inner = new TestChatClient
484
using
var
nullClient = new TestChatClient
516
using
var
inner = new TestChatClient
541
using
var
inner = new TestChatClient
567
using
var
inner = new TestChatClient
611
using
var
inner = new TestChatClient
639
using
var
failing = new TestChatClient
643
using
var
working = new TestChatClient
662
using
var
inner = new TestChatClient
709
using
var
inner = new TestChatClient
744
using
var
first = new TestChatClient
748
using
var
second = new TestChatClient
768
using
var
first = new TestChatClient
772
using
var
second = new TestChatClient
796
using
var
first = new TestChatClient
800
using
var
second = new TestChatClient
823
using
var
inner = new TestChatClient
849
using
var
failing = new TestChatClient
853
using
var
working = new TestChatClient
871
using
var
failing = new TestChatClient
876
using
var
working = new TestChatClient
896
using
var
failing = new TestChatClient
900
using
var
working = new TestChatClient
931
using
var
inner = new TestChatClient
979
using
var
failing = new TestChatClient
983
using
var
working = new TestChatClient
1021
using
var
inner = new TestChatClient
1064
using
var
inner = new TestChatClient
1093
using
var
inner = new TestChatClient
1120
using
var
inner = new TestChatClient
ChatRouting\OrderedFailoverChatClientTests.cs (22)
19
using
var
inner = new TestChatClient();
30
using
var
first = new TestChatClient
39
using
var
second = new TestChatClient
60
using
var
first = new TestChatClient
70
using
var
second = new TestChatClient
90
using
var
inner = new TestChatClient
110
using
var
first = new TestChatClient
114
using
var
second = new TestChatClient
130
using
var
first = new TestChatClient
138
using
var
second = new TestChatClient
157
using
var
first = new TestChatClient
170
using
var
second = new TestChatClient
194
using
var
first = new TestChatClient
198
using
var
second = new TestChatClient
218
using
var
inner = new TestChatClient
235
using
var
firstInner = new TestChatClient
246
using
var
secondInner = new TestChatClient
277
using
var
first = new TestChatClient
281
using
var
second = new TestChatClient
299
using
var
first = new TestChatClient
303
using
var
second = new TestChatClient
355
using
var
leaf = new TestChatClient
ChatRouting\SemanticRoutingChatClientTests.cs (7)
19
using
var
client = new TestChatClient();
98
using
var
code = new TestChatClient
102
using
var
writing = new TestChatClient
146
using
var
code = new TestChatClient
151
using
var
writing = new TestChatClient
189
using
var
profiled = new TestChatClient
195
using
var
defaultClient = new TestChatClient