public static IStepType ToStepType(this StepTypeEnum type) { return(new StepType { Name = type.ToString(), IsEndType = type.Equals(StepTypeEnum.Finalized) }); }
private StepBuilder AddStep(string id, StepTypeEnum stepType) { if (_steps.ContainsKey(id)) { throw new ArgumentException($"Step with id={id} already exists"); } var container = new StepContainer(new StepBuilder(this, id), stepType); _steps[id] = container; return(container.Builder); }
internal StepContainer(StepBuilder builder, StepTypeEnum stepTypeEnum) { Builder = builder; StepType = stepTypeEnum; }