Example #1
0
        public static TNextStep Then <TNextStep>(this IStep currentStep) where TNextStep : IStep, new()
        {
            var nextStep = new TNextStep();

            currentStep.Attach(new SimpleOutcome(nextStep));

            return(nextStep);
        }
Example #2
0
        public static TNextStep Then <TNextStep>(this IStep currentStep, TNextStep nextStep) where TNextStep : IStep
        {
            currentStep.Attach(new SimpleOutcome(nextStep));

            return(nextStep);
        }