예제 #1
0
        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);
        }
예제 #4
0
        public AbstractEventScopeContextTest()
        {
            this.eventScope        = A.Fake <IEventScopeInternal>();
            this.eventScopeFactory = A.Fake <IEventScopeFactory>();

            this.testee = new TestAbstractEventScopeContext(this.eventScopeFactory);
        }
예제 #5
0
 public ScopeDecorator(IEventScopeInternal scope, Action action)
 {
     this.action = action;
     this.scope  = scope;
 }
예제 #6
0
 protected virtual void ResetAction()
 {
     this.CurrentScope = null;
 }
예제 #7
0
 public virtual IEventScope Acquire()
 {
     return(this.CurrentScope ?? (this.CurrentScope = new ScopeDecorator(this.ScopeFactory.CreateScope(), this.ResetAction)));
 }
예제 #8
0
 public SinglePhaseScopeDecorator(IEventScopeInternal decorated, Action resetAction)
 {
     this.scope       = decorated;
     this.resetAction = resetAction;
 }
 public SinglePhaseScopeDecorator(IEventScopeInternal decorated, Action resetAction)
 {
     this.scope = decorated;
     this.resetAction = resetAction;
 }
 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));
 }