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); MockLowerSequenceTask .RecoveryOptions .Returns(new RecoveryOptionsDto()); MockLowerSequenceRecoveryTask .Run() .Returns(SequenceResultEnum.Fail); _result = SUT.Run(); }