public void Fail_workflow_for_child_workflow_reschedule_timer()
        {
            const string workflowRunid = "rid";
            var          builder       = new HistoryEventsBuilder().AddWorkflowRunId(workflowRunid);

            builder.AddNewEvents(TimerCancellationFailedEventGrpah(Identity.New(WorkflowName, WorkflowVersion).ScheduleId(workflowRunid), Cause));

            var decisions = new WorkflowWithChildWorkflow().Decisions(builder.Result());

            Assert.That(decisions, Is.EqualTo(new[] { new FailWorkflowDecision("RESCHEDULE_TIMER_CANCELLATION_FAILED", Cause) }));
        }
        public void Fail_workflow_for_child_workflow_reshedule_timer()
        {
            const string workflowRunid = "rid";
            var          identity      = Identity.New(WorkflowName, WorkflowVersion).ScheduleId(workflowRunid);
            var          builder       = new HistoryEventsBuilder().AddWorkflowRunId(workflowRunid);

            builder.AddNewEvents(TimerStartFailedEventGraph(identity, TimerFailureCause));

            var decisions = new WorkflowWithChildWorkflow().Decisions(builder.Result());

            Assert.That(decisions, Is.EqualTo(new[] { new FailWorkflowDecision("RESCHEDULE_TIMER_START_FAILED", TimerFailureCause) }));
        }