Closed MahmoudH96 closed 1 year ago
Your call log is empty because you're filtering on Content-Type application/x-www-form-urlencoded
. The Content-Type for multipart requests is multipart/form-data
, likely with a random boundary
as well. Use WithContentType("multipart/form-data")
, which is forgiving enough to ignore any boundary added.
I'm trying to write a unit test for a service that calls an endpoint and sends a multipart form.
My service code
And my unit test code
Nevertheless my test is failing as I cannot get any Request body out of the CallLogs, I also looked at your documentation code for the Testable http and there aren't any examples regarding testing Multipart forms.