net9.0
namespace Microsoft.Extensions.DependencyInjection.Specification
{
public abstract class DependencyInjectionSpecificationTests
{
[InlineData(new[] { typeof(IFakeService), typeof(FakeService), typeof(IFakeService), ServiceLifetime.Scoped })]
[InlineData(new[] { typeof(IFakeService), typeof(FakeService), typeof(IFakeService), ServiceLifetime.Singleton })]
[InlineData(new[] { typeof(IFakeOpenGenericService<?>), typeof(FakeOpenGenericService<?>), typeof(IFakeOpenGenericService<IServiceProvider>), ServiceLifetime.Scoped })]
[InlineData(new[] { typeof(IFakeOpenGenericService<?>), typeof(FakeOpenGenericService<?>), typeof(IFakeOpenGenericService<IServiceProvider>), ServiceLifetime.Singleton })]
[Theory]
public void ResolvesDifferentInstancesForServiceWhenResolvingEnumerable(Type serviceType, Type implementation, Type resolve, ServiceLifetime lifetime);
}
}
.NET | 5.06.07.08.09.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 net9.0 | |
Assemblies | Microsoft.Extensions.DependencyInjection.Specification.Tests , Version=9.0.0.0, PublicKeyToken=adb9793829ddae60 Microsoft.Extensions.DependencyInjection.Specification.Tests , Version=8.0.0.0, PublicKeyToken=adb9793829ddae60 |
Referencing | Your project needs a package reference to |
Package | Microsoft.Extensions.DependencyInjection.Specification.Tests net9.0 |
Platform Restrictions | This API is supported on all platforms. |