public static void ThenChangeStateTo(this EventConfigured eventConfigured, string stateName) { eventConfigured .StateConfiguration .CurrentState .ThenChangeStateTo = stateName; var currentState = eventConfigured.StateConfiguration.CurrentState; var workflowService = eventConfigured.StateConfiguration.WorkflowService; StateflowDbContext .Commands .CreateWorkflowState(workflowService, currentState); }
public static void ThenChangeStateTo(this EventConfigured eventConfigured, Enum stateName) { ThenChangeStateTo(eventConfigured, stateName.ToString()); }