Example #1
0
        public StepValidationStatus Validate(IStep step)
        {
            StepValidationStatus status = step.Validate(_cells).GetStatus();

            if (status == StepValidationStatus.Valid && AllErrors().Count() > 0)
            {
                return(StepValidationStatus.Warning);
            }

            return(status);
        }
Example #2
0
        public static Icon IconFor(StepValidationStatus status)
        {
            switch (status)
            {
            case StepValidationStatus.Valid:
                return(Unknown);

            case StepValidationStatus.Error:
                return(Failed);

            case StepValidationStatus.Warning:
                return(Warning);
            }

            throw new ArgumentOutOfRangeException("status");
        }