Exemple #1
0
            public void RemoveAllSagaTimeouts()
            {
                var collection = new SagaTimeoutCollection();

                collection.Add(new SagaTimeout(typeof(Saga), Guid.NewGuid(), DateTime.UtcNow));
                collection.Add(new SagaTimeout(typeof(Saga), Guid.NewGuid(), DateTime.UtcNow));
                collection.Add(new SagaTimeout(typeof(Saga), Guid.NewGuid(), DateTime.UtcNow));

                collection.Clear();

                Assert.Empty(collection);
            }
            public void RemoveAllSagaTimeouts()
            {
                var collection = new SagaTimeoutCollection();

                collection.Add(new SagaTimeout(typeof(Saga), Guid.NewGuid(), DateTime.UtcNow));
                collection.Add(new SagaTimeout(typeof(Saga), Guid.NewGuid(), DateTime.UtcNow));
                collection.Add(new SagaTimeout(typeof(Saga), Guid.NewGuid(), DateTime.UtcNow));

                collection.Clear();

                Assert.Empty(collection);
            }