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);
        }
Exemple #2
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);
        }
Exemple #3
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);
        }