There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
Add MemoryTrackingParticipant WhenState(state, action) method
When unit testing, sometimes the test code needs to do something when the workflow enters a particular state. Using this method the test code can add an action to a list of actions that will be invoked when the workflow under test publishes a StateMachineStateRecord
for the named state.
Each action in the list will be invoked every time the matching state record is received.