Exemplo n.º 1
0
            public void CanDisposeMoreThanOnce()
            {
                var aggregateLock = new AggregateLock(typeof(Aggregate), GuidStrategy.NewGuid());

                aggregateLock.Aquire();
                aggregateLock.Dispose();

                aggregateLock.Dispose();
            }
            public void CanDisposeMoreThanOnce()
            {
                var aggregateLock = new AggregateLock(typeof(Aggregate), GuidStrategy.NewGuid());

                aggregateLock.Aquire();
                aggregateLock.Dispose();

                aggregateLock.Dispose();
            }
            public void CanDisposeIfLockNotAquired()
            {
                var aggregateLock = new AggregateLock(typeof(Aggregate), GuidStrategy.NewGuid());

                aggregateLock.Dispose();
            }
Exemplo n.º 4
0
            public void CanDisposeIfLockNotAquired()
            {
                var aggregateLock = new AggregateLock(typeof(Aggregate), GuidStrategy.NewGuid());

                aggregateLock.Dispose();
            }