Using C# anonymous types to assert complex results in your unit tests

Does this sounds familiar to you: You come to work early(ish) in the morning - ready to apply a new technology you've just learnt about - just to find out that you can't. Your frustration grows as you understand that in order to use this "new and shiny" some adjustments must be made and what … Continue reading Using C# anonymous types to assert complex results in your unit tests

How to count the number of event invocations using Rx

A while ago I've needed to count the number of events arriving from an external system and perform a specific task once a specific threshold has been reached. I've needed to count groups of events each group had it's own unique key. Although I might have been able to solve this problem using a dictionary … Continue reading How to count the number of event invocations using Rx

Assert.AreEqual in MSTest – done right

Every unit testing framework out there comes with a plethora of assertion methods - this is not necessarily a good thing. Instead of writing simple code a developer is forced to choose the correct assertion method from a seemingly endless list of methods, most of which look exactly the same! Having multiple overloaded methods with … Continue reading Assert.AreEqual in MSTest – done right

Develop (and test) a dockerized, PostgreSQL backed, ASP.NET Core microservice in less than an hour

These days a .NET developer can create, test and deploy powerful software without breaking sweat. Writing a scalable, easily deployable performant ASP.NET Core microservice is easier than ever. The cool thing about using Docker is run automated tests against that soon-to-be-written service in an environment that was quickly created and immediately disposed once the testing … Continue reading Develop (and test) a dockerized, PostgreSQL backed, ASP.NET Core microservice in less than an hour

What to do when Visual Studio 2017 debugger won’t attach to Docker

We've been developing .NET Core micro-services for a few months. Obviously we've decided to use Docker for Windows for deployment. Don't get me wrong I still find the experience amazing: Write code, and immediately debug your code running on Docker, it got to a point I no longer think about this amazing integration - write … Continue reading What to do when Visual Studio 2017 debugger won’t attach to Docker

Getting started with IronPython – Part 1 where to start

It seems to me that there is a lot of talk about the new .NET Dynamic Languages lately. Because I wanted to see what the DLR was all about I will learn IronPython as part of my quest to learn new programming languages. Learning new language When I learn a new programming language I look … Continue reading Getting started with IronPython – Part 1 where to start