Example #1
0
 public void CanDisposeMoreThanOnce()
 {
     using (var sagaLock = new SagaLock(typeof(Saga), GuidStrategy.NewGuid()))
     {
         sagaLock.Aquire();
         sagaLock.Dispose();
         sagaLock.Dispose();
     }
 }
Example #2
0
            public void CanDisposeIfLockAquired()
            {
                var sagaLock = new SagaLock(typeof(Saga), GuidStrategy.NewGuid());

                sagaLock.Aquire();

                sagaLock.Dispose();
            }
 public void CanDisposeMoreThanOnce()
 {
     using (var sagaLock = new SagaLock(typeof(Saga), GuidStrategy.NewGuid()))
     {
         sagaLock.Aquire();
         sagaLock.Dispose();
         sagaLock.Dispose();
     }
 }
            public void CanDisposeIfLockNotAquired()
            {
                var sagaLock = new SagaLock(typeof(Saga), GuidStrategy.NewGuid());

                sagaLock.Dispose();
            }