6 references to Resolve
Aspire.Azure.AI.Extensions.OpenAI.Tests (6)
AspireAzureProjectOpenAIExtensionsTests.cs (6)
86var client = Resolve(host.Services, keyed); 89Assert.Same(client, Resolve(host.Services, keyed)); 143await Resolve(host.Services, keyed).GetProjectResponsesClientForModel("test").CreateResponseAsync("hello"); 161var exception = Assert.Throws<InvalidOperationException>(() => Resolve(host.Services, keyed)); 181Assert.NotNull(Resolve(host.Services, keyed)); 266var exception = Assert.Throws<ArgumentException>(() => Resolve(host.Services, keyed));