TDD

Unit Testing Cloud Deployments with Pulumi in F#

Developing infrastructure programs in F# with unit tests, TDD, and mocks

Read more...

Unit Testing Cloud Deployments with Pulumi in C#

Developing infrastructure programs in C# with unit tests, TDD, and mocks

Read more...

Unit testing Dapper repositories

Dapper is a micro-ORM library which is very simple and super fast. Quite often the data access code is difficult to be unit tested. In this post, I present some ideas of testing Dapper-based database access.

Read more...

Unit testing null parameter checks

We use constructor dependency injection throughout our application. Most service classes have constructors, which accept all dependencies in form of interfaces. We also use TDD, which means we must write unit tests for every aspect of our code. So I want to discuss one specific aspect: guarding the constructor parameters from null values and testing this guard.

Read more...