public void Setup() { _builder = new HistoryEventsBuilder(); var historyEventGraph = _builder.ActivityCancellationFailedGraph(Identity.New(_activityName, _activityVersion), _cause); _activityCancellationFailedEvent = new ActivityCancellationFailedEvent(historyEventGraph.First()); }
private WorkflowHistoryEvents CreateActivityCancellationFailedEventGraph() { var activityCancellationFailedEventGraph = _builder.ActivityCancellationFailedGraph(Identity.New("activity", "1.0"), "detail"); return(new WorkflowHistoryEvents(activityCancellationFailedEventGraph)); }