public StepResult(int stepNumber, IStepName stepName, ResultStatus stepStatus, string statusDetails = null) { Number = stepNumber; StepName = stepName; Status = stepStatus; StatusDetails = statusDetails; Name = stepName.Format(StepNameDecorators.Default); }
public StepResult(int stepNumber, IStepName stepName, ResultStatus stepStatus, string statusDetails = null) { Number = stepNumber; StepName = stepName; Status = stepStatus; StatusDetails = statusDetails; Name = stepName.Format(StepNameDecorators.Default); }
private static XElement ToXElement(IStepName stepName) { var objects = new List <object>(); if (stepName.StepTypeName != null) { objects.Add(new XAttribute("StepType", stepName.StepTypeName)); } objects.Add(new XAttribute("Format", stepName.NameFormat)); objects.Add(stepName.Parameters.Select(p => new XElement("Parameter", new XAttribute("IsEvaluated", p.IsEvaluated), new XText(p.FormattedValue))).Cast <object>().ToArray()); return(new XElement("StepName", objects)); }
private static XElement ToXElement(IStepName stepName) { var objects = new List<object>(); if (stepName.StepTypeName != null) objects.Add(new XAttribute("StepType", stepName.StepTypeName)); objects.Add(new XAttribute("Format", stepName.NameFormat)); objects.Add(stepName.Parameters.Select(p => new XElement("Parameter", new XAttribute("IsEvaluated", p.IsEvaluated), new XText(p.FormattedValue))).Cast<object>().ToArray()); return new XElement("StepName", objects); }