namespace Elsa.Testing.Shared.Services; public class WorkflowEvents { public event EventHandler? WorkflowFinished; public event EventHandler? WorkflowInstanceSaved; public event EventHandler? WorkflowStateCommitted; public event EventHandler? ActivityExecuted; public event EventHandler? ActivityExecutedLogUpdated; public void OnWorkflowFinished(WorkflowFinishedEventArgs args) => WorkflowFinished?.Invoke(this, args); public void OnWorkflowInstanceSaved(WorkflowInstanceSavedEventArgs args) => WorkflowInstanceSaved?.Invoke(this, args); public void OnWorkflowStateCommitted(WorkflowStateCommittedEventArgs args) => WorkflowStateCommitted?.Invoke(this, args); public void OnActivityExecuted(ActivityExecutedEventArgs args) => ActivityExecuted?.Invoke(this, args); public void OnActivityExecutedLogUpdated(ActivityExecutedLogUpdatedEventArgs args) => ActivityExecutedLogUpdated?.Invoke(this, args); }