18 references to TestTextToSpeechClient
Microsoft.Extensions.AI.Tests (18)
TextToSpeech\ConfigureOptionsTextToSpeechClientTests.cs (3)
19Assert.Throws<ArgumentNullException>("configure", () => new ConfigureOptionsTextToSpeechClient(new TestTextToSpeechClient(), null!)); 25using var innerClient = new TestTextToSpeechClient(); 41using ITextToSpeechClient ttsInnerClient = new TestTextToSpeechClient
TextToSpeech\LoggingTextToSpeechClientTests.cs (4)
21Assert.Throws<ArgumentNullException>("logger", () => new LoggingTextToSpeechClient(new TestTextToSpeechClient(), null!)); 27using var innerClient = new TestTextToSpeechClient(); 55using ITextToSpeechClient innerClient = new TestTextToSpeechClient 102using ITextToSpeechClient innerClient = new TestTextToSpeechClient
TextToSpeech\OpenTelemetryTextToSpeechClientTests.cs (2)
39using var innerClient = new TestTextToSpeechClient 150using var innerClient = new TestTextToSpeechClient
TextToSpeech\TextToSpeechClientDependencyInjectionPatterns.cs (9)
18ServiceCollection.AddTextToSpeechClient(services => new TestTextToSpeechClient { Services = services }) 41using var singleton = new TestTextToSpeechClient(); 65ServiceCollection.AddKeyedTextToSpeechClient("mykey", services => new TestTextToSpeechClient { Services = services }) 90using 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()); 161sc.AddKeyedTextToSpeechClient(null, _ => new TestTextToSpeechClient());