mardi 26 avril 2016

How to mock a IFormFile for a unit/integration test in ASP.NET Core 1 MVC 6?

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, which is the new upload standard for ASP.NET Core...

Any suggestions on how to do this?

Thanks.

Aucun commentaire:

Enregistrer un commentaire