Skip to content

Commit

Permalink
Update AutofacJobActivatorTests.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
odinserj committed Sep 25, 2024
1 parent 8c47ea7 commit 020ccbc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Hangfire.Autofac.Tests/AutofacJobActivatorTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ public void InstanceRegisteredWith_InstancePerJob_IsDisposedOnScopeDisposal()

using (var scope = BeginScope(activator))
{
// ReSharper disable once UnusedVariable
var instance = scope.Resolve(typeof(Disposable));
Assert.NotNull(instance);
}

Assert.True(disposable.Disposed);
Expand All @@ -200,8 +200,8 @@ public void InstancePerJob_RegisteredWithExtraTags_ResolvesForJobScope()

using (var scope = BeginScope(activator))
{
// ReSharper disable once UnusedVariable
var instance = scope.Resolve(typeof(object));
Assert.NotNull(instance);
}
}

Expand All @@ -215,8 +215,8 @@ public void InstancePerJob_RegisteredWithExtraTags_ResolvesForAlternateScope()

using (var scope = container.BeginLifetimeScope(alternateLifetimeScopeTag))
{
// ReSharper disable once UnusedVariable
var instance = scope.Resolve(typeof(object));
Assert.NotNull(instance);
}
}

Expand Down

0 comments on commit 020ccbc

Please sign in to comment.