4 references to TestServiceThatTakesStringBuilder
Microsoft.AspNetCore.Components.WebAssembly.Tests (4)
Hosting\WebAssemblyHostBuilderTest.cs (4)
99builder.Services.AddSingleton<TestServiceThatTakesStringBuilder>(); 106Assert.Throws<InvalidOperationException>(() => host.Services.GetRequiredService<TestServiceThatTakesStringBuilder>()); 116builder.Services.AddSingleton<TestServiceThatTakesStringBuilder>(); 123Assert.NotNull(host.Services.GetRequiredService<TestServiceThatTakesStringBuilder>());