The easiest way to see the correct syntax is to create a web test and add the datasource using the editor. Then do the databinding in the editor and then generate a coded class.
But you are close. You would access the data with something like,
request5Body.FormPostParameters.Add("PrimaryCreditCard:_CardNumber", this.Context["creditCards.cc#csv.cc_number"].ToString());
You should also have an attribute at the top that is something like:
[ DataBinding("creditCards", "cc#csv", "cc_number", "creditCards.cc#csv.cc_number")]
Blog - http://blogs.msdn.com/slumley/default.aspx |