HttpRequester and in-memory Web-API testing

I’ve been working with ASP.Net WebAPI a bit lately. While doing this, I had the need for writing some integration tests by excercising the API using my little Requester library. I wanted a solution where I was doing requests against “hosted” API-endpoints, where the OWIN pipeline for the API has been executed and my Ninject container bootstraped, my filters for FluentValidation working… you get the picture right. To get this behaviour, I could have gone with in-process self-hosting, but found that the in-memory OWIN pipline cabable hosting solution to be a really nice fit (docs | NuGet). And after a tiny adjustment of Requester, it worked against it as well.

Read More

Microsoft, JetBrains, Teamcity and WebApplication.Targets

Wouldn’t it be awesome if Microsoft and JetBrains could come to an agreement, so that EVERYTHING needed to build an Asp.Net solution, could be resolved from within TeamCity so that we wouldn’t have to make separate installs of msbuild tools and .Net frameworks and, most ANNOYINGLY, the web application targets that so many applies the “manual copy workaround” for.

Read More


Get every new post delivered to your Inbox.

Join 33 other followers