18 references to 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
());