GetSaga() public static method

public static GetSaga ( System.Guid correlationId ) : Task
correlationId System.Guid
return Task
        public async Task ThenSagaDoesNotExistInRepository()
        {
            var saga = await SagaRepository.GetSaga(_saga.CorrelationId);

            Assert.That(saga, Is.Null);
        }
示例#2
0
        public async Task ThenVersionIncremeted()
        {
            var saga = await SagaRepository.GetSaga(_correlationId);

            Assert.That(saga.Version, Is.EqualTo(1));
        }
示例#3
0
 public void ThenSagaInstanceStored()
 {
     Assert.That(SagaRepository.GetSaga(_correlationId), Is.Not.Null);
 }
        public void ThenTheCompletedSagaIsNotUpdated()
        {
            var actual = TaskUtil.Await(() => SagaRepository.GetSaga(_correlationId));

            Assert.That(actual.Version, Is.EqualTo(_simpleSaga.Version));
        }
        public async Task ThenSagaInsertedIntoMongo()
        {
            var saga = await SagaRepository.GetSaga(_saga.CorrelationId);

            Assert.That(saga, Is.Not.Null);
        }