public PerTransactionScopeContextTest() { this.eventScope = A.Fake <IEventScopeInternal>(); this.eventScopeFactory = A.Fake <IEventScopeFactory>(); this.testee = new PerTransactionScopeContext(this.eventScopeFactory); }
public PerTransactionScopeContextTest() { this.eventScope = A.Fake<IEventScopeInternal>(); this.eventScopeFactory = A.Fake<IEventScopeFactory>(); this.testee = new PerTransactionScopeContext(this.eventScopeFactory); }
public AbstractEventScopeContextTest() { this.eventScope = A.Fake<IEventScopeInternal>(); this.eventScopeFactory = A.Fake<IEventScopeFactory>(); this.testee = new TestAbstractEventScopeContext(this.eventScopeFactory); }
public AbstractEventScopeContextTest() { this.eventScope = A.Fake <IEventScopeInternal>(); this.eventScopeFactory = A.Fake <IEventScopeFactory>(); this.testee = new TestAbstractEventScopeContext(this.eventScopeFactory); }
public ScopeDecorator(IEventScopeInternal scope, Action action) { this.action = action; this.scope = scope; }
protected virtual void ResetAction() { this.CurrentScope = null; }
public virtual IEventScope Acquire() { return(this.CurrentScope ?? (this.CurrentScope = new ScopeDecorator(this.ScopeFactory.CreateScope(), this.ResetAction))); }
public SinglePhaseScopeDecorator(IEventScopeInternal decorated, Action resetAction) { this.scope = decorated; this.resetAction = resetAction; }
public virtual IEventScope Acquire() { return this.CurrentScope ?? (this.CurrentScope = new ScopeDecorator(this.ScopeFactory.CreateScope(), this.ResetAction)); }