Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        private string BuildMethodParameters(ExecuteMethodStep method)
        {
            var result = string.Join(", ", method.Parameters.Select(p => $"string {p.GetFormattedName()}"));

            return(result);
        }
Esempio n. 3
0
 public void Visit(ExecuteMethodStep testStep)
 {
     this.methods.Add(testStep);
 }
Esempio n. 4
0
        private string BuildMethodParameterValues(ExecuteMethodStep method)
        {
            var result = string.Join(", ", method.Parameters.Select(p => $"\"{p.Value}\""));

            return(result);
        }