I want to write tests for uploading of files in ASP.NET Core 1 but can\'t seem to find a nice way to mock/instanciate an object derived from IFormFile. Any suggestions on ho
Easier would be to create an actual in-memory instance
IFormFile file = new FormFile(new MemoryStream(Encoding.UTF8.GetBytes("This is a dummy file")), 0, 0, "Data", "dummy.txt");