public static TNextStep Then <TNextStep>(this IStep currentStep) where TNextStep : IStep, new() { var nextStep = new TNextStep(); currentStep.Attach(new SimpleOutcome(nextStep)); return(nextStep); }
public static TNextStep Then <TNextStep>(this IStep currentStep, TNextStep nextStep) where TNextStep : IStep { currentStep.Attach(new SimpleOutcome(nextStep)); return(nextStep); }