Skip to content

Commit f1b76bb

Browse files
authored
Update to Autofac 6.0.0 (#52)
1 parent 23540eb commit f1b76bb

5 files changed

+6
-6
lines changed

AutofacContrib.NSubstitute.Tests/AutoSubstituteOptionsFixture.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using Autofac;
22
using Autofac.Core;
3+
using Autofac.Core.Activators.Reflection;
34
using Autofac.Core.Registration;
45
using NUnit.Framework;
56
using System;
@@ -113,7 +114,7 @@ public void InternalConstructorFails()
113114
.Build()
114115
.Container;
115116

116-
Assert.Throws<DependencyResolutionException>(() => mock.Resolve<ClassWithInternalConstructor>());
117+
Assert.Throws<NoConstructorsFoundException>(() => mock.Resolve<ClassWithInternalConstructor>());
117118
}
118119

119120
[Test]

AutofacContrib.NSubstitute.Tests/AutofacContrib.NSubstitute.Tests.csproj

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Autofac" Version="5.2.0" />
1110
<PackageReference Include="NSubstitute" Version="4.2.2" />
1211
<PackageReference Include="nunit" Version="3.12.0" />
1312
<PackageReference Include="NUnit3TestAdapter" Version="3.17.0" />

AutofacContrib.NSubstitute/AutofacContrib.NSubstitute.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
@@ -10,7 +10,7 @@
1010
</PropertyGroup>
1111

1212
<ItemGroup>
13-
<PackageReference Include="Autofac" Version="5.2.0" />
13+
<PackageReference Include="Autofac" Version="6.0.0" />
1414
<PackageReference Include="NSubstitute" Version="4.2.2" />
1515
</ItemGroup>
1616

AutofacContrib.NSubstitute/NSubstituteRegistrationHandler.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public NSubstituteRegistrationHandler(AutoSubstituteOptions options)
4444
/// Registrations for the service.
4545
/// </returns>
4646
public IEnumerable<IComponentRegistration> RegistrationsFor
47-
(Service service, Func<Service, IEnumerable<IComponentRegistration>> registrationAccessor)
47+
(Service service, Func<Service, IEnumerable<ServiceRegistration>> registrationAccessor)
4848
{
4949
if (service == null)
5050
{

GitVersionConfig.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
mode: ContinuousDelivery
2-
next-version: 6.2.0
2+
next-version: 7.0.0
33
branches: {}

0 commit comments

Comments
 (0)