private ExecuteMethodStep CreateExecuteMethodStep(string commandParameter) { var step = new ExecuteMethodStep(); if (commandParameter != null) { var split = commandParameter.Split(new string[] { "@" }, 2, StringSplitOptions.RemoveEmptyEntries); if (split.Length > 0) { step.MethodName = split[0].Trim(); } if (split.Length > 1) { step.Parameters = ParseMethodParameters(split[1]); } } return(step); }
private string BuildMethodParameters(ExecuteMethodStep method) { var result = string.Join(", ", method.Parameters.Select(p => $"string {p.GetFormattedName()}")); return(result); }
public void Visit(ExecuteMethodStep testStep) { this.methods.Add(testStep); }
private string BuildMethodParameterValues(ExecuteMethodStep method) { var result = string.Join(", ", method.Parameters.Select(p => $"\"{p.Value}\"")); return(result); }