public void Should_not_be_active_when_activity_is_completed() { var activityCompletedEventGraph = _builder.ActivityCompletedGraph(Identity.New("activity", "1.0"), "id", "res"); var workflowHistoryEvents = new WorkflowHistoryEvents(activityCompletedEventGraph); Assert.IsFalse(workflowHistoryEvents.HasActiveEvent()); }
public void Setup() { _builder = new HistoryEventsBuilder(); var completedActivityEventGraph = _builder.ActivityCompletedGraph(Identity.New(_activityName, _activityVersion, _positionalName), _identity, _result, _input); _activityCompletedEvent = new ActivityCompletedEvent(completedActivityEventGraph.First(), completedActivityEventGraph); }