public void GetCurrentScope_WithCurrentScopeSet_ReturnsTheSetScope() { var lifestyle = new AsyncScopedLifestyle(); var container = new Container(); var expectedScope = new Scope(container); // Act lifestyle.SetCurrentScope(expectedScope); // Assert var actualScope = lifestyle.GetCurrentScope(container); Assert.AreSame(expectedScope, actualScope); }