public void Should_not_be_active_when_timer_is_fired() { var timerStartedEventGraph = _builder.TimerFiredGraph(Identity.Timer("id"), TimeSpan.FromSeconds(2)); var workflowHistoryEvents = new WorkflowHistoryEvents(timerStartedEventGraph); Assert.IsFalse(workflowHistoryEvents.HasActiveEvent()); }
public void Last_event_can_be_timer_fired_event() { var eventGraph = _builder.TimerFiredGraph(_timerIdentity, TimeSpan.FromSeconds(2)); var timerItem = CreateTimerItemFor(eventGraph); var latestEvent = timerItem.LastEvent; Assert.That(latestEvent, Is.EqualTo(new TimerFiredEvent(eventGraph.First(), eventGraph))); }