15 instantiations of TestSpeechToTextClient
Microsoft.Extensions.AI.Tests (15)
SpeechToText\ConfigureOptionsSpeechToTextClientTests.cs (3)
20
Assert.Throws<ArgumentNullException>("configure", () => new ConfigureOptionsSpeechToTextClient(new
TestSpeechToTextClient
(), null!));
26
using var innerClient = new
TestSpeechToTextClient
();
42
using ISpeechToTextClient innerClient = new
TestSpeechToTextClient
SpeechToText\LoggingSpeechToTextClientTests.cs (4)
23
Assert.Throws<ArgumentNullException>("logger", () => new LoggingSpeechToTextClient(new
TestSpeechToTextClient
(), null!));
29
using var innerClient = new
TestSpeechToTextClient
();
57
using ISpeechToTextClient innerClient = new
TestSpeechToTextClient
103
using ISpeechToTextClient innerClient = new
TestSpeechToTextClient
SpeechToText\SpeechToTextClientDependencyInjectionPatterns.cs (8)
18
ServiceCollection.AddSpeechToTextClient(services => new
TestSpeechToTextClient
{ Services = services })
41
using var singleton = new
TestSpeechToTextClient
();
65
ServiceCollection.AddKeyedSpeechToTextClient("mykey", services => new
TestSpeechToTextClient
{ Services = services })
90
using 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)
26
using
var
innerClient = new TestSpeechToTextClient();
SpeechToText\LoggingSpeechToTextClientTests.cs (1)
29
using
var
innerClient = new TestSpeechToTextClient();
SpeechToText\SpeechToTextClientDependencyInjectionPatterns.cs (8)
34
Assert.IsType<
TestSpeechToTextClient
>(instance.InnerClient);
41
using
var
singleton = new TestSpeechToTextClient();
58
Assert.IsType<
TestSpeechToTextClient
>(instance.InnerClient);
83
Assert.IsType<
TestSpeechToTextClient
>(instance.InnerClient);
90
using
var
singleton = new TestSpeechToTextClient();
109
Assert.IsType<
TestSpeechToTextClient
>(instance.InnerClient);
130
Assert.IsType<
TestSpeechToTextClient
>(sd.ImplementationFactory(null!));
153
Assert.IsType<
TestSpeechToTextClient
>(sd.KeyedImplementationFactory(null!, null!));