void given_post_with_file(string uri, string mediaType) { given_request_to(uri) .Post() .Accept(MediaType.ApplicationOctetStream) .EntityAsMultipartFormData( FormData.File("file", "test.bin", _randomBytes, mediaType), FormData.Text("Description", "Do not open this file.") ); }