示例#1
0
        public void ScopeHolderAndScopeContext_BeSameInstance(IEventScopeFactory factory, Type scopeType)
        {
            var scopeContext = factory.CreateScopeContext();
            var scopeHolder  = factory.CreateScopeHolder();

            scopeContext.Should().BeSameAs(scopeHolder);
        }
示例#2
0
        public void CreateScopeContext_CreatesScopeHolderOfType(IEventScopeFactory factory, Type scopeType)
        {
            IEventScopeContext scopeContext = factory.CreateScopeContext();

            scopeContext.GetType().Should().Be(scopeType);
        }