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

                sagaLock.Aquire();

                sagaLock.Dispose();
            }
Ejemplo n.º 3
0
 public void CanDisposeMoreThanOnce()
 {
     using (var sagaLock = new SagaLock(typeof(Saga), GuidStrategy.NewGuid()))
     {
         sagaLock.Aquire();
         sagaLock.Dispose();
         sagaLock.Dispose();
     }
 }
Ejemplo n.º 4
0
            public void CanDisposeIfLockNotAquired()
            {
                var sagaLock = new SagaLock(typeof(Saga), GuidStrategy.NewGuid());

                sagaLock.Dispose();
            }