File uploads in ASP.NET Core integration tests

added by DotNetKicks
4/12/2019 5:09:21 AM

2 Kicks, 177 Views

Writing integration tests for ASP.NET Core controller actions used for file uploads is not a rare need. It is fully supported by ASP.NET Core integration tests system. This post shows how to write integration tests for single and multiple file uploads. Suppose we have controller action for file upload that supports multiple files.