4 instantiations of TestHostedService
Microsoft.AspNetCore.Components.WebAssembly.Tests (4)
Hosting\WebAssemblyHostTest.cs (4)
94
var testHostedService = new
TestHostedService
();
122
var testHostedService1 = new
TestHostedService
();
123
var testHostedService2 = new
TestHostedService
();
155
var goodService = new
TestHostedService
();
8 references to TestHostedService
Microsoft.AspNetCore.Components.WebAssembly.Tests (8)
Hosting\WebAssemblyHostTest.cs (8)
94
var
testHostedService = new TestHostedService();
122
var
testHostedService1 = new TestHostedService();
123
var
testHostedService2 = new TestHostedService();
155
var
goodService = new TestHostedService();
188
builder.Services.AddSingleton<
TestHostedService
>();
189
builder.Services.AddSingleton<IHostedService>(serviceProvider => serviceProvider.GetRequiredService<
TestHostedService
>());
209
Assert.IsType<
TestHostedService
>(testService);
210
Assert.True(((
TestHostedService
)testService).StartCalled);