Пример #1
0
        public void It_should_persist_successfully()
        {
            var saga1 = new SagaWithoutUniqueProperties()
            {
                Id              = Guid.NewGuid(),
                UniqueString    = "whatever",
                NonUniqueString = "notUnique"
            };

            SaveSaga(saga1);

            UpdateSaga <SagaWithoutUniqueProperties>(saga1.Id, s =>
            {
                s.NonUniqueString = "notUnique2";
                s.UniqueString    = "whatever2";
            });
        }
        public void It_should_persist_successfully()
        {
            var uniqueString        = Guid.NewGuid().ToString();
            var anotherUniqueString = Guid.NewGuid().ToString();

            var saga1 = new SagaWithoutUniqueProperties()
            {
                Id              = Guid.NewGuid(),
                UniqueString    = uniqueString,
                NonUniqueString = "notUnique"
            };

            SaveSaga(saga1);

            UpdateSaga <SagaWithoutUniqueProperties>(saga1.Id, s =>
            {
                s.NonUniqueString = "notUnique2";
                s.UniqueString    = anotherUniqueString;
            });
        }