4 references to GetRequiredService
Microsoft.Extensions.AI.Abstractions.Tests (4)
Files\HostedFileClientExtensionsTests.cs (4)
543var result = client.GetRequiredService(typeof(string)); 554Assert.Throws<InvalidOperationException>(() => client.GetRequiredService(typeof(string))); 561Assert.Throws<ArgumentNullException>("client", () => client.GetRequiredService(typeof(string))); 568Assert.Throws<ArgumentNullException>("serviceType", () => client.GetRequiredService(null!));