public MockResponseWithCustomParse() { var responseObjectContent = "key,value\n" + "AL,Alabama\n" + "AK,Alaska"; var header = new Dictionary <string, IEnumerable <string> > { { "Content-Type", new List <string> { "text/csv" } } }; var emptyHeader = new Dictionary <string, IEnumerable <string> >(); var loadResults = new List <LoadResponse> { new LoadResponse(200, 78978078) }; ResponseContext.AddParser("csv", CsvToJson); _responseWithCsv = new ResponseContext(HttpStatusCode.OK, responseObjectContent, header, _mockElapsedTimespan, loadResults); }