Web Api Versioning with Swagger

Lots has been written about using Swagger to provide a useful api documentation api and even more about versioning your web apis. Bringing the two together with as little code as possible is now a common ‘boilerplate’ requirement so I wanted to break down the various parts and options available Read more…

Testing Web Apis with Specflow

Following on from my previous post on using Nullable reference types to aid validation with Web Apis where I mentioned the idea of forming model requirements early on in your design to allow developers to set which properties can be a nullable reference type, I was reminded of the importance Read more…

Testing MongoDb Queries

Using nuget packages to help facade the complexities of some resource dependency can no doubt speed up development, but often it can create a bit of a headache when it comes to unit testing. Anything that uses a lot of static classes, extension methods or a fluent api approach can Read more…

Code tests to fail first

Writing unit tests to fail first is a highly recommended practice and it makes a lot of sense. However, I find more discipline is needed when you are investigating a bug report and you uncover the source of the problem