Skip to content

Commit 6c8e066

Browse files
authored
Merge pull request #94 from SimplifyNet/dependabot/nuget/develop/DryIoc-4.1.3
Bump DryIoc from 4.1.0 to 4.1.3
2 parents 29eb9b0 + 0a31902 commit 6c8e066

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/Simplify.DI.Tests/DIContainerProviderTests.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public void Resolve_NotRegistered_ContainerException()
2424
// Act & Assert
2525

2626
var ex = Assert.Throws<ContainerException>(() => _provider.Resolve<NonDepFoo>());
27-
Assert.That(ex.Message, Does.StartWith("Unable to resolve"));
27+
Assert.That(ex.Message, Does.StartWith("code: UnableToResolveUnknownService"));
2828
Assert.That(ex.Message, Does.Contain("NonDepFoo (IsResolutionCall)"));
2929
}
3030

@@ -35,7 +35,7 @@ public void ScopedResolve_NotRegistered_ContainerException()
3535
using (var scope = _provider.BeginLifetimeScope())
3636
{
3737
var ex = Assert.Throws<ContainerException>(() => scope.Resolver.Resolve<NonDepFoo>());
38-
Assert.That(ex.Message, Does.StartWith("Unable to resolve"));
38+
Assert.That(ex.Message, Does.StartWith("code: UnableToResolveUnknownService"));
3939
Assert.That(ex.Message, Does.Contain("NonDepFoo (IsResolutionCall)"));
4040
}
4141
}
@@ -49,7 +49,7 @@ public void Resolve_ScopeRegisteredAndRequestedOutsideOfTheScope_ContainerExcept
4949
// Act & Assert
5050

5151
var ex = Assert.Throws<ContainerException>(() => _provider.Resolve<NonDepFoo>());
52-
Assert.That(ex.Message, Does.StartWith("No current scope is available: probably you are registering to, or resolving from outside of the scope."));
52+
Assert.That(ex.Message, Does.StartWith("code: NoCurrentScope"));
5353
}
5454

5555
[Test]
@@ -565,7 +565,7 @@ public void ScopedResolve_SingletonDependsOnScoped_ContainerException()
565565
// Act && Assert
566566

567567
var ex = Assert.Throws<ContainerException>(() => scope.Resolver.Resolve<IFoo>());
568-
Assert.That(ex.Message, Does.Contain("IBar as parameter \"bar\" (IsSingletonOrDependencyOfSingleton) reuse Scoped {Lifespan=100} lifespan shorter than its parent's: Resolution root singleton"));
568+
Assert.That(ex.Message, Does.Contain("code: DependencyHasShorterReuseLifespan"));
569569
}
570570
}
571571

@@ -798,7 +798,7 @@ public void Verify_MissingDependencyRegistration_ContainerException()
798798
// Act && Assert
799799

800800
var ex = Assert.Throws<ContainerException>(() => _provider.Verify());
801-
Assert.That(ex.Message, Does.StartWith("Unable to resolve"));
801+
Assert.That(ex.Message, Does.StartWith("code: UnableToResolveUnknownService"));
802802
Assert.That(ex.Message, Does.Contain("IBar as parameter \"bar\""));
803803
}
804804

@@ -850,7 +850,7 @@ public void Verify_SingletonDependsOnScoped_ContainerException()
850850
// Act && Assert
851851

852852
var ex = Assert.Throws<ContainerException>(() => _provider.Verify());
853-
Assert.That(ex.Message, Does.Contain("IBar as parameter \"bar\" (IsSingletonOrDependencyOfSingleton) reuse Scoped {Lifespan=100} lifespan shorter than its parent's: Resolution root singleton"));
853+
Assert.That(ex.Message, Does.Contain("code: DependencyHasShorterReuseLifespan"));
854854
}
855855

856856
// Note: this behavior check is not available

src/Simplify.DI/Simplify.DI.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<DocumentationFile>bin\Any CPU\$(Configuration)\$(TargetFramework)\Simplify.DI.xml</DocumentationFile>
2323
</PropertyGroup>
2424
<ItemGroup>
25-
<PackageReference Include="DryIoc" Version="4.1.0" PrivateAssets="All" />
25+
<PackageReference Include="DryIoc" Version="4.1.3" PrivateAssets="All" />
2626
</ItemGroup>
2727
<ItemGroup Condition=" '$(TargetFramework)' == 'net452' ">
2828
<Reference Include="System" />

0 commit comments

Comments
 (0)