Ejemplo n.º 1
0
        public void SetUp()
        {
            Saga1 = new SagaEntityWithUniqueProperty
            {
                Id = Guid.NewGuid(),
                OriginalMessageId  = "original message id for saga1",
                Originator         = "[email protected]",
                ThisShouldBeUnique = UNIQUE_VALUE_ONE
            };

            SagaPersister.Save(Saga1);
            SagaPersister.DocumentSessionFactory.Current.SaveChanges();
        }
        public void SetUp()
        {
            Saga1 = new SagaEntityWithUniqueProperty
                        {
                            Id = Guid.NewGuid(),
                            OriginalMessageId = "original message id for saga1",
                            Originator = "[email protected]",
                            ThisShouldBeUnique = UNIQUE_VALUE_ONE
                        };

            SagaPersister.Save(Saga1);
            SagaPersister.DocumentSessionFactory.Current.SaveChanges();
        }