DependencyInjectionSpecificationTests
CreateInstanceFunc
DependencyInjectionSpecificationTests()
CreateInstanceFuncs
ExpectStructWithPublicDefaultConstructorInvoked
ServiceContainerPicksConstructorWithLongestMatchesData
SupportsIServiceProviderIsService
TypesWithNonPublicConstructorData
AbstractClassConstrainedOpenGenericServicesCanBeResolved()
AttemptingToResolveNonexistentServiceReturnsNull()
BuiltInServicesWithIsServiceReturnsTrue()
ClosedGenericsWithIsService()
ClosedServicesPreferredOverOpenGenericServices()
ConstrainedOpenGenericServicesCanBeResolved()
ConstrainedOpenGenericServicesReturnsEmptyWithNoMatches()
CreateInstance_CapturesInnerException_OfTargetInvocationException()
CreateInstance_WithAbstractTypeAndPublicConstructor_ThrowsCorrectException()
CreateServiceProvider(IServiceCollection)
DisposesInReverseOrderOfCreation()
DisposingScopeDisposesService()
ExplicitServiceRegisterationWithIsService()
FactoryServicesAreCreatedAsPartOfCreatingObjectGraph()
FactoryServicesCanBeCreatedByGetService()
GetServiceOrCreateInstanceRegisteredServiceSingleton()
GetServiceOrCreateInstanceRegisteredServiceTransient()
GetServiceOrCreateInstanceUnregisteredService()
IEnumerableWithIsServiceAlwaysReturnsTrue()
InterfaceConstrainedOpenGenericServicesCanBeResolved()
LastServiceReplacesPreviousServices()
MultipleServiceCanBeIEnumerableResolved()
NestedScopedServiceCanBeResolved()
NestedScopedServiceCanBeResolvedWithNoFallbackProvider()
NonexistentServiceCanBeIEnumerableResolved()
NonSingletonService_WithInjectedProvider_ResolvesScopeProvider(ServiceLifetime)
OpenGenericServicesCanBeResolved()
OpenGenericsWithIsService()
OuterServiceCanHaveOtherServicesInjected()
RegistrationOrderIsPreservedWhenServicesAreIEnumerableResolved()
ResolvesDifferentInstancesForServiceWhenResolvingEnumerable(Type, Type, Type, ServiceLifetime)
ResolvesMixedOpenClosedGenericsAsEnumerable()
ResolvingEnumerableContainingOpenGenericServiceUsesCorrectSlot()
SafelyDisposeNestedProviderReferences()
ScopedServiceCanBeResolved()
ScopedServices_FromCachedScopeFactory_CanBeResolvedAndDisposed()
ScopesAreFlatNotHierarchical()
SelfResolveThenDispose()
ServiceContainerPicksConstructorWithLongestMatches(IServiceCollection, TypeWithSupersetConstructors)
ServiceInstanceCanBeResolved()
ServiceProviderIsDisposable()
ServiceProviderRegistersServiceScopeFactory()
ServiceScopeFactoryIsSingleton()
ServicesRegisteredWithImplementationType_ReturnDifferentInstancesPerResolution_ForTransientServices()
ServicesRegisteredWithImplementationType_ReturnSameInstancesPerResolution_ForSingletons()
ServicesRegisteredWithImplementationTypeCanBeResolved()
SingleServiceCanBeIEnumerableResolved()
SingletonServiceCanBeResolved()
SingletonServiceCanBeResolvedFromScope()
SingletonServicesComeFromRootProvider()
TransientServiceCanBeResolvedFromProvider()
TransientServiceCanBeResolvedFromScope()
TypeActivatorAcceptsAnyNumberOfAdditionalConstructorParametersToProvide(CreateInstanceFunc)
TypeActivatorCanDisambiguateConstructorsWithUniqueArguments(CreateInstanceFunc)
TypeActivatorCreateFactoryDoesNotAllowForAmbiguousConstructorMatches(Type)
TypeActivatorCreateInstanceUsesLongestAvailableConstructor(Object, String)
TypeActivatorEnablesYouToCreateAnyTypeWithServicesEvenWhenNotInIocContainer(CreateInstanceFunc)
TypeActivatorRequiresAllArgumentsCanBeAccepted(CreateInstanceFunc)
TypeActivatorRequiresPublicConstructor(CreateInstanceFunc, Type)
TypeActivatorRethrowsOriginalExceptionFromConstructor(CreateInstanceFunc)
TypeActivatorThrowsOnMultipleMarkedCtors(CreateInstanceFunc)
TypeActivatorThrowsWhenMarkedCtorDoesntAcceptArguments(CreateInstanceFunc)
TypeActivatorUsesMarkedConstructor(CreateInstanceFunc)
TypeActivatorWorksWithCtorWithOptionalArgs_WithStructDefaults(CreateInstanceFunc)
TypeActivatorWorksWithCtorWithOptionalArgs(CreateInstanceFunc)
TypeActivatorWorksWithStaticCtor(CreateInstanceFunc)
UnRegisteredServiceAsConstructorParameterThrowsException(CreateInstanceFunc)
net11.0-windows7.0
namespace Microsoft.Extensions.DependencyInjection.Specification
{
public abstract class DependencyInjectionSpecificationTests
{
protected abstract IServiceProvider CreateServiceProvider(IServiceCollection serviceCollection);
}
}
| .NET | 5.06.07.08.09.010.011.0 |
|---|---|
| .NET Core | 2.02.12.23.03.1 |
| .NET Framework | 4.6.14.6.24.74.7.14.7.24.84.8.1 |
| .NET Standard | 2.02.1 |
Information specific to net11.0 | |
| Platforms | This API is only available when you target a specific platform: |
| Windows | 7.0 |
Information specific to net11.0-windows7.0 | |
| Assemblies | Microsoft.Extensions.DependencyInjection.Specification.Tests , Version=11.0.0.0, PublicKeyToken=adb9793829ddae60 Microsoft.Extensions.DependencyInjection.Specification.Tests , Version=10.0.0.13, PublicKeyToken=adb9793829ddae60 |
| Referencing | Your project needs a package reference to |
| Package | Microsoft.Extensions.DependencyInjection.Specification.Tests (11.0.0-rc.2.26504.105) netstandard2.0 |
| Platform Restrictions | This API is supported on all platforms. |
- Built-in API
- Package-provided API