public void RetrievingSagaUsingIdNotFound( MongoSagaPersister sut, SagaWithUniqueProperty sagaData, SagaCorrelationProperty correlationProperty, SynchronizedStorageSession session, ContextBag context) { sut.Get <SagaWithUniqueProperty>(sagaData.Id, session, context).Result.Should().BeNull(); }
public void RetrievingSagaUsingStringUniqueId( MongoSagaPersister sut, SagaWithUniqueProperty sagaData) { sut.Save(sagaData); var result = sut.Get <SagaWithUniqueProperty>("UniqueProperty", sagaData.UniqueProperty); result.ShouldBeEquivalentTo(sagaData); }
public void RetrievingSagaUsingGuidUniqueId( MongoSagaPersister sut, SagaWithUniqueGuidProperty sagaData) { sut.Save(sagaData); var result = sut.Get <SagaWithUniqueGuidProperty>("SomeId", sagaData.SomeId); result.ShouldBeEquivalentTo(sagaData); }
public void RetrievingSagaUsingId( MongoSagaPersister sut, SagaWithoutUniqueProperties sagaData) { sut.Save(sagaData); var result = sut.Get <SagaWithoutUniqueProperties>(sagaData.Id); result.ShouldBeEquivalentTo(sagaData); }
public void RetrievingSagaUsingCorrelationPropertyNotFound( MongoSagaPersister sut, SagaCorrelationProperty correlationProperty, SynchronizedStorageSession session, ContextBag context) { sut.Get <SagaWithUniqueProperty>(correlationProperty.Name, "badvalue", session, context) .Result.Should() .BeNull(); }
public void RetrievingSagaUsingId( MongoSagaPersister sut, SagaWithUniqueProperty sagaData, SagaCorrelationProperty correlationProperty, SynchronizedStorageSession session, ContextBag context) { sut.Save(sagaData, correlationProperty, session, context).Wait(); var result = sut.Get <SagaWithUniqueProperty>(sagaData.Id, session, context).Result; result.ShouldBeEquivalentTo(sagaData); }
public void RetrievingSagaUsingStringUniqueId( MongoSagaPersister sut, SagaWithUniqueProperty sagaData) { sut.Save(sagaData); var result = sut.Get<SagaWithUniqueProperty>("UniqueProperty", sagaData.UniqueProperty); result.ShouldBeEquivalentTo(sagaData); }
public void RetrievingSagaUsingGuidUniqueId( MongoSagaPersister sut, SagaWithUniqueGuidProperty sagaData) { sut.Save(sagaData); var result = sut.Get<SagaWithUniqueGuidProperty>("SomeId", sagaData.SomeId); result.ShouldBeEquivalentTo(sagaData); }
public void RetrievingSagaUsingId( MongoSagaPersister sut, SagaWithoutUniqueProperties sagaData) { sut.Save(sagaData); var result = sut.Get<SagaWithoutUniqueProperties>(sagaData.Id); result.ShouldBeEquivalentTo(sagaData); }