Пример #1
0
            public void ReturnFriendlyDescription()
            {
                var sagaType = typeof(Saga);
                var sagaId   = GuidStrategy.NewGuid();

                using (var context = new SagaContext(sagaType, sagaId, new FakeEvent()))
                    Assert.Equal($"{sagaType} - {sagaId}", context.ToString());
            }
            public void ReturnFriendlyDescription()
            {
                var sagaType = typeof(Saga);
                var sagaId = GuidStrategy.NewGuid();

                using (var context = new SagaContext(sagaType, sagaId, new FakeEvent()))
                    Assert.Equal($"{sagaType} - {sagaId}", context.ToString());
            }