Exemple #1
0
        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), }));
        }
Exemple #2
0
 private HistoryEvent [] ActivityTimedoutEventGraph()
 {
     return(_builder.ActivityTimedoutGraph(Identity.New(ActivityName, ActivityVersion).ScheduleId(), "id", "reason", "detail").ToArray());
 }