refactor: Remove unused Resolve method in IntegrationFixture

This method also had a bug in it: It leaked the child lifetime scope.
commitlint
Robert Dailey 2 years ago
parent 9fa5d9f3a1
commit e4a3e9d1fe

@ -80,13 +80,6 @@ public abstract class IntegrationFixture : IDisposable
builder.RegisterInstance(Substitute.For<T>()).As<T>();
}
// ReSharper disable once UnusedMember.Global
protected T Resolve<T>(Action<ContainerBuilder> customRegistrations) where T : notnull
{
var childScope = Container.BeginLifetimeScope(customRegistrations);
return childScope.Resolve<T>();
}
protected T Resolve<T>() where T : notnull
{
return Container.Resolve<T>();

Loading…
Cancel
Save