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