Unit test which requires a file in Request.Files <p>I'm writing a unit test and the piece of code its testing requires that a file be in Request.Files.</p> <p>In my controller I'm calling something called <code>AddDocument(file)</code> and the file is taken from Request.Files.</p> <p>How do you achieve unit testing this? Isn't the Request only available in the controller?</p>