I wanted the unit tests for a
StateMachineWorkflow to act as if they are persisted so I created the InMemoryPersistenceService. Basically the service serializes the activities to memory then stores them as byte arrays in dictionaries using the guid as the key. Fairly simple stuff, but usefull.
InMemoryPersistenceService .cs (5.64 kb)