public StepInfo(IStepNameInfo name, int number, int total, string groupPrefix) { Name = name; Number = number; Total = total; GroupPrefix = groupPrefix; }
public StepInfo(IMetadataInfo parent, IStepNameInfo name, int number, int total, string groupPrefix) { Parent = parent; Name = name; Number = number; Total = total; GroupPrefix = groupPrefix; }
public static StepNameInfo WithUpdatedParameters(IStepNameInfo nameInfo, INameParameterInfo[] parameters) { if (nameInfo.Parameters.Count() != parameters.Length) { throw new ArgumentException("StepNameInfo cannot be updated with different number of parameters"); } return(new StepNameInfo(nameInfo.StepTypeName, nameInfo.NameFormat, parameters)); }
private static XElement ToXElement(IStepNameInfo stepName) { var objects = new List <object>(); if (stepName.StepTypeName != null) { objects.Add(new XAttribute("StepType", stepName.StepTypeName.Name)); } objects.Add(new XAttribute("Format", stepName.NameFormat)); objects.Add(stepName.Parameters.Select(ToXElement).Cast <object>().ToArray()); return(new XElement("StepName", objects)); }
public void UpdateName(INameParameterInfo[] parameters) { Name = StepNameInfo.WithUpdatedParameters(Name, parameters); }
public StepInfo(IStepNameInfo name, int number, int total) { Name = name; Number = number; Total = total; }