I am using specflow and I have a rather large table in my examples:
it has around 14 fields.
is there a better way of passing all of those filds into a method that is item1 and item2 and item4
I can see that there is a create set method, but this doesn't seem to cater for examples, and only in step....well steps.
is there a way to pass the data in an object rather than sending 14 strings?
Hope that makes sense.
Ta,
Steve
** Edit ** adding an example
Here is the headers for my exmaple file
| propLocation | locPropToBuy | propertyType | newBuild | appsLiveProprty | ownershipType | purchPrice | totLoanAmount | intOnlyAmount | prefLoanTermYrs | prefLoanTermMths |
the method generated for this will look like this:
[When(@"the user provides input for the Property and Loan Requirements Section (.*) and (.*) and (.*) and (.*) and (.*) and (.*) and (.*) and (.*) and (.*) and (.*) and (.*) and (.*) and (.*) and (.*) and (.*)")]
public void WhenTheUserProvidesInputForThePropertyAndLoanRequirementsSectionEnglandAndYesAndTerracedHouseAndYesAndYesAndStandardAndAndAndAndAndAndAndAndSAnd(string propLocation,
string locPropToBuy, string propertyType, string newBuild, string legalOwnership,
string ownershipType, string equityShreScheme, string purchPrice, string fullMarketVal,
string termShareLoanYrs, string termShareLoanMths, string totLoanAmount,
string intOnlyAmount, string prefLoanTermYrs, string prefLoanTermMths)
Although I will eventually change the coded values to (.*) etc.
It would be easier for me if I could just pass an object or a list of all the values rather than long instances of strings.