コード例 #1
0
        public ScopingHandlerDecoratorTest()
        {
            this.handler = A.Fake<IHandler>();
            this.scopeHolder = A.Fake<IEventScopeHolder>();

            this.testee = new ScopingHandlerDecorator(this.handler, this.scopeHolder);
        }
コード例 #2
0
        public ScopingHandlerDecoratorTest()
        {
            this.handler     = A.Fake <IHandler>();
            this.scopeHolder = A.Fake <IEventScopeHolder>();

            this.testee = new ScopingHandlerDecorator(this.handler, this.scopeHolder);
        }
コード例 #3
0
 public ScopingHandlerDecorator(IHandler handler, IEventScopeHolder scopeHolder)
 {
     this.scopeHolder = scopeHolder;
     this.handler = handler;
 }
コード例 #4
0
        public void CreateScopeHolder_CreatesScopeHolderOfType(IEventScopeFactory factory, Type scopeType)
        {
            IEventScopeHolder scopeHolder = factory.CreateScopeHolder();

            scopeHolder.GetType().Should().Be(scopeType);
        }
コード例 #5
0
 public ScopingHandlerDecorator(IHandler handler, IEventScopeHolder scopeHolder)
 {
     this.scopeHolder = scopeHolder;
     this.handler     = handler;
 }