18 instantiations of TestTextToSpeechClient
Microsoft.Extensions.AI.Tests (18)
TextToSpeech\ConfigureOptionsTextToSpeechClientTests.cs (3)
19
Assert.Throws<ArgumentNullException>("configure", () => new ConfigureOptionsTextToSpeechClient(new
TestTextToSpeechClient
(), null!));
25
using var innerClient = new
TestTextToSpeechClient
();
41
using ITextToSpeechClient ttsInnerClient = new
TestTextToSpeechClient
TextToSpeech\LoggingTextToSpeechClientTests.cs (4)
21
Assert.Throws<ArgumentNullException>("logger", () => new LoggingTextToSpeechClient(new
TestTextToSpeechClient
(), null!));
27
using var innerClient = new
TestTextToSpeechClient
();
55
using ITextToSpeechClient innerClient = new
TestTextToSpeechClient
102
using ITextToSpeechClient innerClient = new
TestTextToSpeechClient
TextToSpeech\OpenTelemetryTextToSpeechClientTests.cs (2)
39
using var innerClient = new
TestTextToSpeechClient
150
using var innerClient = new
TestTextToSpeechClient
TextToSpeech\TextToSpeechClientDependencyInjectionPatterns.cs (9)
18
ServiceCollection.AddTextToSpeechClient(services => new
TestTextToSpeechClient
{ Services = services })
41
using var singleton = new
TestTextToSpeechClient
();
65
ServiceCollection.AddKeyedTextToSpeechClient("mykey", services => new
TestTextToSpeechClient
{ Services = services })
90
using var singleton = new
TestTextToSpeechClient
();
122
? sc.AddTextToSpeechClient(services => new
TestTextToSpeechClient
(), lifetime.Value)
123
: sc.AddTextToSpeechClient(services => new
TestTextToSpeechClient
());
144
? sc.AddKeyedTextToSpeechClient("key", services => new
TestTextToSpeechClient
(), lifetime.Value)
145
: sc.AddKeyedTextToSpeechClient("key", services => new
TestTextToSpeechClient
());
161
sc.AddKeyedTextToSpeechClient(null, _ => new
TestTextToSpeechClient
());
13 references to TestTextToSpeechClient
Microsoft.Extensions.AI.Tests (13)
TextToSpeech\ConfigureOptionsTextToSpeechClientTests.cs (1)
25
using
var
innerClient = new TestTextToSpeechClient();
TextToSpeech\LoggingTextToSpeechClientTests.cs (1)
27
using
var
innerClient = new TestTextToSpeechClient();
TextToSpeech\OpenTelemetryTextToSpeechClientTests.cs (2)
39
using
var
innerClient = new TestTextToSpeechClient
150
using
var
innerClient = new TestTextToSpeechClient
TextToSpeech\TextToSpeechClientDependencyInjectionPatterns.cs (9)
34
Assert.IsType<
TestTextToSpeechClient
>(instance.InnerClient);
41
using
var
singleton = new TestTextToSpeechClient();
58
Assert.IsType<
TestTextToSpeechClient
>(instance.InnerClient);
83
Assert.IsType<
TestTextToSpeechClient
>(instance.InnerClient);
90
using
var
singleton = new TestTextToSpeechClient();
109
Assert.IsType<
TestTextToSpeechClient
>(instance.InnerClient);
130
Assert.IsType<
TestTextToSpeechClient
>(sd.ImplementationFactory(null!));
153
Assert.IsType<
TestTextToSpeechClient
>(sd.KeyedImplementationFactory(null!, null!));
169
Assert.IsType<
TestTextToSpeechClient
>(sd.ImplementationFactory(null!));