コード例 #1
0
        public void Return_scheduling_decision_for_child_when_one_of_its_parent_is_completed_and_other_one_is_timedout_but_configured_to_continue()
        {
            var workflow         = new WorkflowWithAParentContinueOnTimedout();
            var allHistoryEvents = CreateParentActivityCompletedAndTimedoutEventsGraph();

            var decisions = workflow.NewExecutionFor(allHistoryEvents).Execute();

            Assert.That(decisions, Is.EquivalentTo(new[] { new ScheduleActivityDecision(Identity.New("Transcode", "2.0")) }));
        }
コード例 #2
0
        public void Return_scheduling_decision_for_child_when_one_of_its_parent_is_completed_and_other_one_is_timedout_but_configured_to_continue()
        {
            _eventsBuilder.AddProcessedEvents(TimedoutActivityEventGraph(_siblingActivityName, _siblingActivityVersion));
            _eventsBuilder.AddNewEvents(CompletedActivityEventGraph(_activityName, _activityVersion, _positionalName));
            var workflow = new WorkflowWithAParentContinueOnTimedout();

            var decisions = workflow.Decisions(_eventsBuilder.Result());

            Assert.That(decisions, Is.EquivalentTo(new[] { new ScheduleActivityDecision(Identity.New("Transcode", "2.0").ScheduleId()) }));
        }