ASP.NET MVC — Unit Testing IActionResult
In the last post I talked about using and extending IActionResult to return your preferred HttpStatus code in your ASP.NET MVC controllers. But how do you write unit tests that make sure that you’re returning what you expect? Your controllers will return one of these: IActionResult There’s nothing on this interface that you can easily … [Read more…]