15 instantiations of TestSpeechToTextClient
Microsoft.Extensions.AI.Tests (15)
SpeechToText\ConfigureOptionsSpeechToTextClientTests.cs (3)
20Assert.Throws<ArgumentNullException>("configure", () => new ConfigureOptionsSpeechToTextClient(new TestSpeechToTextClient(), null!)); 26using var innerClient = new TestSpeechToTextClient(); 42using ISpeechToTextClient innerClient = new TestSpeechToTextClient
SpeechToText\LoggingSpeechToTextClientTests.cs (4)
23Assert.Throws<ArgumentNullException>("logger", () => new LoggingSpeechToTextClient(new TestSpeechToTextClient(), null!)); 29using var innerClient = new TestSpeechToTextClient(); 57using ISpeechToTextClient innerClient = new TestSpeechToTextClient 103using ISpeechToTextClient innerClient = new TestSpeechToTextClient
SpeechToText\SpeechToTextClientDependencyInjectionPatterns.cs (8)
18ServiceCollection.AddSpeechToTextClient(services => new TestSpeechToTextClient { Services = services }) 41using var singleton = new TestSpeechToTextClient(); 65ServiceCollection.AddKeyedSpeechToTextClient("mykey", services => new TestSpeechToTextClient { Services = services }) 90using var singleton = new TestSpeechToTextClient(); 122? sc.AddSpeechToTextClient(services => new TestSpeechToTextClient(), lifetime.Value) 123: sc.AddSpeechToTextClient(services => new TestSpeechToTextClient()); 144? sc.AddKeyedSpeechToTextClient("key", services => new TestSpeechToTextClient(), lifetime.Value) 145: sc.AddKeyedSpeechToTextClient("key", services => new TestSpeechToTextClient());
10 references to TestSpeechToTextClient
Microsoft.Extensions.AI.Tests (10)
SpeechToText\ConfigureOptionsSpeechToTextClientTests.cs (1)
26using var innerClient = new TestSpeechToTextClient();
SpeechToText\LoggingSpeechToTextClientTests.cs (1)
29using var innerClient = new TestSpeechToTextClient();
SpeechToText\SpeechToTextClientDependencyInjectionPatterns.cs (8)
34Assert.IsType<TestSpeechToTextClient>(instance.InnerClient); 41using var singleton = new TestSpeechToTextClient(); 58Assert.IsType<TestSpeechToTextClient>(instance.InnerClient); 83Assert.IsType<TestSpeechToTextClient>(instance.InnerClient); 90using var singleton = new TestSpeechToTextClient(); 109Assert.IsType<TestSpeechToTextClient>(instance.InnerClient); 130Assert.IsType<TestSpeechToTextClient>(sd.ImplementationFactory(null!)); 153Assert.IsType<TestSpeechToTextClient>(sd.KeyedImplementationFactory(null!, null!));