public void Can_return_all_cancellation_request() { var cancellationEventGraph = new[] { _builder.WorkflowCancellationRequestedEvent("cause"), _builder.WorkflowCancellationRequestedEvent("cause2", "runid", "wid") }; var workflowHistoryEvents = new WorkflowHistoryEvents(cancellationEventGraph); var allWorkflowCancellationRequestedEvents = workflowHistoryEvents.AllWorkflowCancellationRequestedEvents(); Assert.That(allWorkflowCancellationRequestedEvents, Is.EqualTo(new[] { new WorkflowCancellationRequestedEvent(cancellationEventGraph.First()), new WorkflowCancellationRequestedEvent(cancellationEventGraph.Last()) })); }
public void Setup() { _builder = new HistoryEventsBuilder(); var cancellationRequestedEvent = _builder.WorkflowCancellationRequestedEvent("cause", "runid", "id"); _cancellationRequestedEvent = new WorkflowCancellationRequestedEvent(cancellationRequestedEvent); }