public void Return_scheduling_decision_for_child_when_one_of_its_parent_is_completed_and_one_is_cancelled_but_configured_to_continue()
        {
            var workflow         = new WorkflowWithAParentContinueOnCancelled();
            var allHistoryEvents = CreateParentActivityCompletedAndCancelledEventsGraph();

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

            Assert.That(decisions, Is.EquivalentTo(new[] { new ScheduleActivityDecision(Identity.New("Transcode", "2.0")) }));
        }
        public void Return_scheduling_decision_for_child_when_one_of_its_parent_is_completed_and_one_is_cancelled_but_configured_to_continue()
        {
            _eventsBuilder.AddProcessedEvents(CancelledActivityEventGraph(_siblingActivityName,
                                                                          _siblingActivityVersion));
            _eventsBuilder.AddNewEvents(CompletedActivityEventGraph(_activityName, _activityVersion, _positionalName));
            var workflow = new WorkflowWithAParentContinueOnCancelled();

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

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