testing

Tear down your ASP.NET Core api between integration tests

June 21, 2017 · c# asp.net-core integration-testing testing couchbase quartz.net

The way to write integration tests for ASP.NET applications has been made much easier with the advent of ASP.NET Core. This is mainly due to the programming model becoming super modular, which means that it is really easy »

Setting up Coveralls with OpenCover for a .NET Core project

June 14, 2017 · appveyor testing opencover coveralls .net-core

Update: The original version of this post was written when the dotnet toolchain was built on top of the project.json based project structure. Since then the project.json was deprecated, and .NET Core moved to a csproj-based approach. Because »

Stubbing service dependencies in .NET using Stubbery

June 12, 2016 · .net .net-core asp.net asp.net-core testing integration-testing

Introduction When writing integration tests for a service (especially if we are running a long, end-to-end test), it often causes a problem that the external dependencies of our service fail. Let's say we have a service handling customer payments and »