public void ScopeHolderAndScopeContext_BeSameInstance(IEventScopeFactory factory, Type scopeType) { var scopeContext = factory.CreateScopeContext(); var scopeHolder = factory.CreateScopeHolder(); scopeContext.Should().BeSameAs(scopeHolder); }
public void CreateScopeContext_CreatesScopeHolderOfType(IEventScopeFactory factory, Type scopeType) { IEventScopeContext scopeContext = factory.CreateScopeContext(); scopeContext.GetType().Should().Be(scopeType); }