public async Task ThenSagaDoesNotExistInRepository() { var saga = await SagaRepository.GetSaga(_saga.CorrelationId); Assert.That(saga, Is.Null); }
public async Task ThenVersionIncremeted() { var saga = await SagaRepository.GetSaga(_correlationId); Assert.That(saga.Version, Is.EqualTo(1)); }
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); }