ASP.NET Core Unit Testing – Setting the request body

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…]