/// <summary>
 /// Creates module attributes for payload
 /// </summary>
 /// <param name="wseTestStepValue">TestStepValues of WSE Teststep</param>
 /// <param name="xpath">XPath and JsonPath for xml</param>
 /// <param name="parent">xModule and xModuleAttribute of ApiEngine</param>
 /// <param name="apiModule">ApiModule</param>
 /// <param name="parentTest">TestStep and TestStepValues for ApiTestStep</param>
 /// <param name="cardinality">Cardinality of WSE XModule</param>
 /// <param name="isArray">True if Wse Xmodule attributes is array</param>
 /// <returns>returns XtestTestValue of API</returns>
 public XTestStepValue CreateModuleAttributeForPayload(XTestStepValue wseTestStepValue,
                                                       string xpath,
                                                       dynamic parent,
                                                       ApiModule apiModule,
                                                       dynamic parentTest,
                                                       string cardinality,
                                                       bool isArray = false)
 {
     return(BusinessParameterHandler.CreateBusinessParameterInTosca(wseTestStepValue,
                                                                    xpath,
                                                                    parent,
                                                                    apiModule,
                                                                    BusinessParameterPathTypes.XPATH,
                                                                    parentTest,
                                                                    cardinality,
                                                                    isArray));
 }
 private XTestStepValue CreateModuleAttributeForPayload(XTestStepValue wseTestStepValue,
                                                        string jsonPath,
                                                        dynamic parent,
                                                        ApiModule apiModule,
                                                        dynamic parentTest,
                                                        string cardinality,
                                                        bool isArray = false)
 {
     if (jsonPath.StartsWith("."))
     {
         jsonPath = jsonPath.Remove(0, 1);
     }
     return(BusinessParameterHandler.CreateBusinessParameterInTosca(wseTestStepValue,
                                                                    jsonPath,
                                                                    parent,
                                                                    apiModule,
                                                                    BusinessParameterPathTypes.JSONPATH,
                                                                    parentTest,
                                                                    cardinality,
                                                                    isArray));
 }