ASP.NET Core
YADNC3JSG–Yet Another .NET Core 3.0 JSON Serializer Gotcha
Previously I wrote about several “gotchas” in the new JSON serializer that is built in to .NET Core 3.0. Another one has cropped up, but it is different enough that I thought it warranted its own post. Type Promiscuity via GIPHY Back in 2010 or something like that, Ted Neward gave a talk about JavaScript … [Read more…]
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…]
ASP.NET Core – Unit Testing a file upload
Last week I wrote about how to upload a file from a website using Angular and .NET Core. Writing tests for this is mostly straightforward, but there’s a few gotchas that I thought I would write down for the next time I need to do this. The front end tests are pretty trivial – you … [Read more…]