Running integration tests for ASP.NET Core apps

One of the things I really disliked about the previous versions of ASP.NET is that there's no real good way to run integration tests on your web application. You basically have to set up a full webserver to run integration tests.

Of course if you use Web API 2 or MVC 5 you have the official testhost. It solves a lot of problems, but the API is a mess to work with and very inflexible.

Using WCF in combination with .NET Core SDK

At my current project we're working hard to get a new REST API running on top of ASP.NET Core. One of the things we need to do is communicate with a set of existing WCF Services in the back office of the company.

This means we need WCF clients inside our ASP.NET Core project. Something that isn't very simple as it turns out. <!-- more -->