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