コード例 #1
0
 public static TImplementation AssertRegisteredSingleton <TInterface, TImplementation>(this IServiceProvider provider)
 => (TImplementation)provider.AssertRegisteredSingleton(typeof(TInterface), typeof(TImplementation));
コード例 #2
0
 public void ShouldRegisterSingletonTypes(Type interfaceType, Type implementationType)
 {
     _provider.AssertRegisteredSingleton(interfaceType, implementationType);
 }