public async Task ThenSagaInsertedIntoMongo() { var saga = await SagaRepository.GetSaga(_saga.CorrelationId); Assert.That(saga, Is.Not.Null); }
public async Task ThenVersionIncremeted() { var saga = await SagaRepository.GetSaga(_correlationId); Assert.That(saga.Version, Is.EqualTo(1)); }
public async Task ThenSagaDoesNotExistInRepository() { var saga = await SagaRepository.GetSaga(_saga.CorrelationId); Assert.That(saga, Is.Null); }
public void ThenSagaInstanceStored() { Assert.That(SagaRepository.GetSaga(_correlationId), Is.Not.Null); }