Preparing the test data
In this section, we're going to see how to send CSV data to a Web API method. We will reuse the CSV data we created in Chapter 7, Content Negotiation Using a Custom OutputFormatter:
This is a snippet of the test data we want to use:
Id,FirstName,LastName,Age,EmailAddress,Address,City,Phone 48,Austin,Ward,49,[email protected],"8814 Gravesend Neck Road ",Daly City,(620) 260-4410 2,Sierra,Smith,15,[email protected],"1199 Marshall Street ",Whittier,(655) 379-4362 27,Victorina,Radcliff,40,[email protected],"2663 Sutton Street ",Bloomington,(255) 365-0521 78,Melissa,Brandzin,39,[email protected],"7439 Knight Court ",Tool,(645) 343-2144 89,Kathryn,Perry,87,[email protected],"5283 Vanderbilt Street ",Carlsbad,(747) 369-4849
You can find the full CSV test data on GitHub at https://github.com/PacktPublishing/Customizing...