1 write to _serviceProvider
Microsoft.AspNetCore.Components.Tests (1)
DependencyInjectionTest.cs (1)
15
_serviceProvider
= new TestServiceProvider();
10 references to _serviceProvider
Microsoft.AspNetCore.Components.Tests (10)
DependencyInjectionTest.cs (10)
16
_renderer = new TestRenderer(
_serviceProvider
);
71
_serviceProvider
.AddKeyedService<IMyService>(serviceInstance, "mismatched-key");
88
_serviceProvider
.AddService<IMyService>(serviceInstance);
102
_serviceProvider
.AddKeyedService<IMyService>(serviceInstance, HasKeyedInjectableProperty.ServiceKey);
118
_serviceProvider
.AddService<IMyService>(serviceInstance);
119
_serviceProvider
.AddService<IMyOtherService>(otherServiceInstance);
120
_serviceProvider
.AddService(concreteServiceInstance);
121
_serviceProvider
.AddKeyedService<IMyService>(serviceInstance, HasManyInjectableProperties.ServiceKey);
140
_serviceProvider
.AddService<IMyService>(serviceInstance);
154
_serviceProvider
.AddService<IMyService>(serviceInstance);