public void SavingSagaWithoutDocumentVersionShouldThrowException( MongoSagaPersister sut, MongoDatabaseFactory factory, SagaWithoutDocumentVersion sagaData) { sut.Invoking(s => s.Save(sagaData)).ShouldThrow <InvalidOperationException>(); }
public void SavingSagaWithoutDocumentVersionShouldThrowException( MongoSagaPersister sut, MongoDatabaseFactory factory, SagaWithoutDocumentVersion sagaData, SagaCorrelationProperty correlationProperty, SynchronizedStorageSession session, ContextBag context) { sut.Invoking(s => s.Save(sagaData, correlationProperty, session, context).Wait()) .ShouldThrow <InvalidOperationException>(); }