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)
netcoreapp2.0
namespace Microsoft.Extensions.DependencyInjection.Specification
{
public abstract class DependencyInjectionSpecificationTests
{
public static IEnumerable<object[]> CreateInstanceFuncs
{
[IteratorStateMachine(typeof(<get_CreateInstanceFuncs>d__7))]
get;
}
}
}
.NET | 5.06.07.08.09.010.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 netcoreapp2.0 | |
Assemblies | Microsoft.Extensions.DependencyInjection.Specification.Tests , Version=9.0.0.3, PublicKeyToken=adb9793829ddae60 Microsoft.Extensions.DependencyInjection.Specification.Tests , Version=10.0.0.0, PublicKeyToken=adb9793829ddae60 |
Referencing | Your project needs a package reference to |
Package | Microsoft.Extensions.DependencyInjection.Specification.Tests (9.0.3) netstandard2.0 |
Platform Restrictions | This framework does not have platform annotations. |
- Built-in API
- Package-provided API