goblincoding.com
Mocking multipart/form-data HttpRequestMessage for testing ASP.NET ApiController
I recently had a problem where I needed to unit test an ApiController action that read data off of the controller’s request object, in other words, something that looks like this: The real-world ac…