Example #1
0
 private HttpManyAction(HttpMethod httpMethod, string url, Func <TestCase, TestCaseContext, IEnumerable <string> > contentsFunc, string sourceKey, string targetKey, string mediaType, IHttpRequestMessageProcessor httpRequestMessageProcessor)
     : base(httpMethod
            , url
            , targetKey ?? sourceKey
            , (testCase, testCaseContext) => contentsFunc(testCase, testCaseContext).Select(id => HttpClientExtensions.CreateContent(testCase.GetContent(id), mediaType)).ToArray()
            , httpRequestMessageProcessor
            , true)
 {
 }