public void All_events_can_return_timedout_event() { var eventGraph = _eventGraphBuilder.ActivityTimedoutGraph(_scheduleId, "workerid", "reason", "detail"); var activityItem = CreateActivityItemWith(eventGraph); var allEvents = activityItem.AllEvents(true); Assert.That(allEvents, Is.EquivalentTo(new[] { new ActivityTimedoutEvent(eventGraph.First(), eventGraph), })); }
private HistoryEvent [] ActivityTimedoutEventGraph() { return(_builder.ActivityTimedoutGraph(Identity.New(ActivityName, ActivityVersion).ScheduleId(), "id", "reason", "detail").ToArray()); }