protected override void When()
        {
            MockLowerSequenceTask
            .Run()
            .Returns(SequenceResultEnum.Success);
            MockUpperSequenceSecondTask
            .Run()
            .Returns(SequenceResultEnum.Success);

            _result = SUT.Run();
        }
        protected override void When()
        {
            MockLowerSequenceTask
            .Run()
            .Returns(SequenceResultEnum.Fail);
            MockUpperSequenceSecondTask
            .Run()
            .Returns(SequenceResultEnum.Success);
            MockLowerSequenceTask
            .RecoveryOptions
            .Returns(new RecoveryOptionsDto());
            MockLowerSequenceRecoveryTask
            .Run()
            .Returns(SequenceResultEnum.Success);

            _result = SUT.Run();
        }
 public void Then_Second_Task_In_Upper_Sequence_Didnt_Run()
 {
     MockUpperSequenceSecondTask
     .DidNotReceive()
     .Run();
 }
 public void Then_Second_Task_In_Upper_Sequence_Ran_Once()
 {
     MockUpperSequenceSecondTask
     .Received(1)
     .Run();
 }