public static WizardState ReduceWizardFirstOnAction(WizardState state, WizardFirstOnAction action) { StepState[] stepStates = new StepState[] { new StepState() { Visible = true }, new StepState() { Visible = false }, new StepState() { Visible = false } }; List <StepState> states = new List <StepState>(); states.AddRange(stepStates); return(new WizardState(states)); }
protected override WizardState GetInitialState() { StepState [] stepStates = new StepState[] { new StepState() { Visible = true }, new StepState() { Visible = false }, new StepState() { Visible = true } }; List <StepState> states = new List <StepState>(); states.AddRange(stepStates); return(new WizardState(states)); }