When we maintain a library that's used by others, we want to shield them from breaking changes and use SemVer as a way of indicating breaking changes when they do occur. If our public API changes in a…
dotnetcore
A collection of 13 posts
Property Based Testing your API Response Types with F#
In this post I'll be looking at an F# ASP.NET Core web app and a technique for ensuring correctness when taking a contract-first approach with OpenAPI, using property based testing with Expecto and FsCheck. There's…
Pro Tip: using static Microsoft.AspNetCore.Http.StatusCodes
When building a web server in ASP.NET Core, the APIs that deal with status codes are int based, there are multiple ways to express a status code in your code, in this post I will share my favourite. // Stop…
Defer with C# 8.0
Go (https://golang.org [https://golang.org/]) has a really nice little language feature called defer, which is a keyword that lets you defer a statement until the current function returns, and you can see an example here [https://gobyexample.…
Trying Out Daily Builds of Roslyn
I wanted to try out a daily build of Roslyn to see the effect of a recent change to the C# compiler. I know how to do this for older .NET Framework projects, I'd add a reference to…