Appccelerate.ScopingEventBroker.Internals.Context.AbstractEventScopeContextTest.CancelOnAcquired_ShouldCancelAcquired C# (CSharp) Method

CancelOnAcquired_ShouldCancelAcquired() private method

private CancelOnAcquired_ShouldCancelAcquired ( ) : void
return void
        public void CancelOnAcquired_ShouldCancelAcquired()
        {
            this.SetupFactoryCreatesScope();

            using (IEventScope scope = this.testee.Acquire())
            {
                scope.Cancel();
            }

            A.CallTo(() => this.eventScope.Cancel()).MustHaveHappened();
        }