public ScopingHandlerDecoratorTest() { this.handler = A.Fake<IHandler>(); this.scopeHolder = A.Fake<IEventScopeHolder>(); this.testee = new ScopingHandlerDecorator(this.handler, this.scopeHolder); }
public ScopingHandlerDecoratorTest() { this.handler = A.Fake <IHandler>(); this.scopeHolder = A.Fake <IEventScopeHolder>(); this.testee = new ScopingHandlerDecorator(this.handler, this.scopeHolder); }
public ScopingHandlerDecorator(IHandler handler, IEventScopeHolder scopeHolder) { this.scopeHolder = scopeHolder; this.handler = handler; }
public void CreateScopeHolder_CreatesScopeHolderOfType(IEventScopeFactory factory, Type scopeType) { IEventScopeHolder scopeHolder = factory.CreateScopeHolder(); scopeHolder.GetType().Should().Be(scopeType); }