ASP.NET Core Unit Testing – Setting the request body
![](https://www.darchuk.net/wp-content/uploads/2019/06/iron-1325560_640.jpg)
Every now and again I find it necessary to set up the request body manually (as opposed to using the [FromBody] tag). In the controller you can read from the request body easily enough: via GIPHY Testing How do you test this? Normally I would just create a controller, call the method, and check the … [Read more…]