Inheritance: IContainSagaData
Ejemplo n.º 1
0
        public async Task Setup()
        {
            _entity = new TestSaga {
                Id = Guid.NewGuid(), Status = StatusEnum.AnotherStatus
            };

            await SaveSaga(_entity).ConfigureAwait(false);

            _savedEntity = await LoadSaga <TestSaga>(_entity.Id).ConfigureAwait(false);
        }
        public override void SetupContext()
        {
            base.SetupContext();

            entity = new TestSaga { Id = Guid.NewGuid() };
            entity.Status = StatusEnum.AnotherStatus;

            SagaPersister.Save(entity);

            savedEntity = SagaPersister.Get<TestSaga>(entity.Id);
        }
        public override void SetupContext()
        {
            base.SetupContext();

            entity = new TestSaga { Id = Guid.NewGuid() };
            entity.DateTimeProperty = DateTime.Parse("12/02/2010 12:00:00.01").ToUniversalTime();

            SagaPersister.Save(entity);

            savedEntity = SagaPersister.Get<TestSaga>(entity.Id);
        }
        public override void SetupContext()
        {
            base.SetupContext();

            entity = new TestSaga { Id = Guid.NewGuid() };
            entity.PolymorpicRelatedProperty = new PolymorpicProperty { SomeInt = 9 };

            SagaPersister.Save(entity);

            savedEntity = SagaPersister.Get<TestSaga>(entity.Id);
        }
        public override void SetupContext()
        {
            base.SetupContext();

            entity = new TestSaga { Id = Guid.NewGuid() };
            entity.RelatedClass = new RelatedClass { Id = Guid.NewGuid() };
            relatedClass = entity.RelatedClass;

            SagaPersister.Save(entity);

            savedEntity = SagaPersister.Get<TestSaga>(entity.Id);
        }
        public async Task Setup()
        {
            _entity = new TestSaga
            {
                Id = Guid.NewGuid(),
                DateTimeProperty = DateTime.Parse("12/02/2010 12:00:00.01").ToUniversalTime()
            };

            await SaveSaga(_entity).ConfigureAwait(false);

            _savedEntity = await LoadSaga <TestSaga>(_entity.Id).ConfigureAwait(false);
        }
Ejemplo n.º 7
0
        public async Task Setup()
        {
            _entity = new TestSaga {
                Id = Guid.NewGuid(), TestComponent = new TestComponent {
                    Property = "Prop"
                }
            };

            await SaveSaga(_entity).ConfigureAwait(false);

            _savedEntity = await LoadSaga <TestSaga>(_entity.Id).ConfigureAwait(false);
        }
Ejemplo n.º 8
0
        public override void SetupContext()
        {
            base.SetupContext();

            entity = new TestSaga {
                Id = Guid.NewGuid()
            };
            entity.DateTimeProperty = DateTime.Parse("12/02/2010 12:00:00.01").ToUniversalTime();

            SagaPersister.Save(entity);

            savedEntity = SagaPersister.Get <TestSaga>(entity.Id);
        }
Ejemplo n.º 9
0
        public override void SetupContext()
        {
            base.SetupContext();

            entity = new TestSaga {
                Id = Guid.NewGuid()
            };
            entity.Status = StatusEnum.AnotherStatus;

            SagaPersister.Save(entity);

            savedEntity = SagaPersister.Get <TestSaga>(entity.Id);
        }
Ejemplo n.º 10
0
        public async Task Setup()
        {
            var entity = new TestSaga {
                Id = Guid.NewGuid(), RelatedClass = new RelatedClass {
                    Id = Guid.NewGuid()
                }
            };

            _relatedClass = entity.RelatedClass;

            await SaveSaga(entity).ConfigureAwait(false);

            _savedEntity = await LoadSaga <TestSaga>(entity.Id).ConfigureAwait(false);
        }
Ejemplo n.º 11
0
        public async Task Setup()
        {
            _entity = new TestSaga
            {
                Id = Guid.NewGuid(),
                PolymorpicRelatedProperty = new PolymorpicProperty {
                    SomeInt = 9
                }
            };

            await SaveSaga(_entity).ConfigureAwait(false);

            _savedEntity = await LoadSaga <TestSaga>(_entity.Id).ConfigureAwait(false);
        }
        public override void SetupContext()
        {
            base.SetupContext();

            entity = new TestSaga {
                Id = Guid.NewGuid()
            };
            entity.PolymorpicRelatedProperty = new PolymorpicProperty {
                SomeInt = 9
            };

            SagaPersister.Save(entity);

            savedEntity = SagaPersister.Get <TestSaga>(entity.Id);
        }
        public override void SetupContext()
        {
            base.SetupContext();

            entity = new TestSaga {
                Id = Guid.NewGuid()
            };
            entity.TestComponent = new TestComponent {
                Property = "Prop"
            };

            SagaPersister.Save(entity);

            savedEntity = SagaPersister.Get <TestSaga>(entity.Id);
        }
Ejemplo n.º 14
0
        public override void SetupContext()
        {
            base.SetupContext();

            entity = new TestSaga {
                Id = Guid.NewGuid()
            };
            entity.RelatedClass = new RelatedClass {
                Id = Guid.NewGuid()
            };
            relatedClass = entity.RelatedClass;

            SagaPersister.Save(entity);

            savedEntity = SagaPersister.Get <TestSaga>(entity.Id);
        }