예제 #1
0
        public void Acquire_WhenAcquiredWithDispose_ShouldReturnNew()
        {
            IEventScope firstScope = this.testee.Acquire();

            firstScope.Dispose();

            using (IEventScope secondScope = this.testee.Acquire())
            {
                firstScope.Should().NotBeSameAs(secondScope);
            }
        }
예제 #2
0
 public Task StopAsync(CancellationToken cancellationToken)
 {
     _eventScope?.Dispose();
     return(Task.CompletedTask);
 }