18 instantiations of 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());
13 references to TestTextToSpeechClient
Microsoft.Extensions.AI.Tests (13)
TextToSpeech\ConfigureOptionsTextToSpeechClientTests.cs (1)
25using var innerClient = new TestTextToSpeechClient();
TextToSpeech\LoggingTextToSpeechClientTests.cs (1)
27using var innerClient = new TestTextToSpeechClient();
TextToSpeech\OpenTelemetryTextToSpeechClientTests.cs (2)
39using var innerClient = new TestTextToSpeechClient 150using var innerClient = new TestTextToSpeechClient
TextToSpeech\TextToSpeechClientDependencyInjectionPatterns.cs (9)
34Assert.IsType<TestTextToSpeechClient>(instance.InnerClient); 41using var singleton = new TestTextToSpeechClient(); 58Assert.IsType<TestTextToSpeechClient>(instance.InnerClient); 83Assert.IsType<TestTextToSpeechClient>(instance.InnerClient); 90using var singleton = new TestTextToSpeechClient(); 109Assert.IsType<TestTextToSpeechClient>(instance.InnerClient); 130Assert.IsType<TestTextToSpeechClient>(sd.ImplementationFactory(null!)); 153Assert.IsType<TestTextToSpeechClient>(sd.KeyedImplementationFactory(null!, null!)); 169Assert.IsType<TestTextToSpeechClient>(sd.ImplementationFactory(null!));