Creating Sonar Cloud Project from VS Solution
If you are using Sonar Cloud for your automated CI quality gate within Azure DevOps, you might find that creating a new Sonar Project from within Sonar doesn’t work as Sonar does not have the permission to read/write your code in order to find the Azure DevOps project, and pushes Read more…
Improving Code Quality with Sonar, GitHub and Azure DevOps CI
In my previous post I walked through the set up of a dotnet core project in Sonar Cloud, showing how, with a few settings in your csproj file and a couple of dotnet tools, you can create a code coverage report and upload your project and report to a Sonar Read more…
Improving Code Quality with SonarCloud
I’ve mentioned in a previous post how recent versions of C#8, along with some reputable code analysers have helped developers improve the quality of their code. One of those analysers is from Sonar, a well known code quality company offering IDE, Cloud and on-premise integration with your code. I have Read more…
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…
C# 8.0 nullable reference types in Web Api validation
Whilst we may look forward to the new ‘syntatical sugar’ we get with updates in the C# language versions, I think one of the most pertinent new features in C#8.0 is the option to enable nullable checks on your code. Most devs will bear the battle scars of null reference Read more…
Creating mock test data for MongoDb
When consulting for large firms, where the existence of copious amounts of test data is established, it makes it very easy to realise the potential of any prototype or greenfield work very quickly. Be the focus on UI or the need for extensive e2e test coverage, having access to streams 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…
Set up Swagger with Swashbuckle in dotnet Core
Using the Swashbuckle nuget package in your dotnet core web api project can enable automatic generation of swagger document and a UI in a just a few minutes