7 references to HasKeyedInjectableProperty
Microsoft.AspNetCore.Components.Tests (7)
DependencyInjectionTest.cs (7)
75
InstantiateComponent<
HasKeyedInjectableProperty
>();
78
Assert.Equal($"Cannot provide a value for property '{nameof(
HasKeyedInjectableProperty
.MyService)}' " +
79
$"on type '{typeof(
HasKeyedInjectableProperty
).FullName}'. There is no registered keyed service " +
80
$"of type '{typeof(IMyService).FullName}' with key '{
HasKeyedInjectableProperty
.ServiceKey}'.", ex.Message);
102
_serviceProvider.AddKeyedService<IMyService>(serviceInstance,
HasKeyedInjectableProperty
.ServiceKey);
105
var
instance = InstantiateComponent<
HasKeyedInjectableProperty
>();