Category Archives: Software

ElasticSearch Sample Data

By | July 25, 2016

This ElasticSearch Sample Data is to be used for learning purpose only. It is randomly generated but still care has been taken to make it look like real world data. UPDATE: A follow up to this post has been published. I will highly recommend that you have a look at it. I use Elasticsearch 7.2.0… Read More »

Are you missing a using directive or an assembly reference?

By | June 20, 2016

Ever saw this error “Are you missing a using directive or an assembly reference”. Even after adding the assembly? Even when Visual studio Intellisense is not complaining. But still compilation fails.

Simple Serilog Tutorial

By | June 3, 2016

This is going to be a simple Serilog tutorial . I will keep this very brief because already there is enough documentation on the project website. I am writing this Serilog tutorial hoping that it might motivate people to take logging seriously. As usual I will start with WHY followed by HOW.

Faking Getters and Setters of Properties

By | May 19, 2016

This post on Faking Getters and Setters of Properties using FakeItEasy will help you to configure the behavior of the properties of the objects you fake. This is not as apparent as the various techniques on configuring the behavior of the methods of the faked objects. Getters and Setters are as configurable as regular methods… Read More »

Specflow Step Definitions Explained

By | April 22, 2016

This is c# based Specflow Step Definitions tutorial will explore intricacies of step definitions. This post follows the beginner tutorial I wrote before. I will recommend that you go through that before reading this post. Step definitions look simple but they have lot of hidden power. So without wasting any more time, let us as… Read More »

Specflow beginner tutorial

By | April 18, 2016

This c# based Specflow beginner tutorial will just focus on fundamentals to get you off to a quick start. At the end of this post you will be having a working Specflow solution. I will be writing other posts on Specflow which will highlight different aspects of Specflow. As usual I will discuss the WHY… Read More »

Faking hardware using FakeItEasy

By | March 22, 2016

This post on Faking hardware using FakeItEasy is based on a simple premise. You should not suffer just because the function you are unit testing invokes some hardware. Writing hardware/device simulators used to be the way out. But with FakeItEasy, it is easy to fake your way out of this. So Let us see how… Read More »

Test builder pattern using fluent interface

By | November 23, 2015

This is a brief c# based tutorial on test builder pattern using fluent interface. It is one of the many ways we can tackle the problem of brittle tests. I will try to keep the example as real world as possible. As usual I will deal with the WHY before the HOW.

Microsoft Unity Tutorial

By | November 4, 2015

This Microsoft Unity Tutorial will aim to make is easy for the uninitiated to work with Microsoft Unity. Unity is a dependency injection container. The best source for Unity remains the developer guide which is also available as a free eBook download. I will strongly recommend that you get a foundation on Inversion of Control(IoC)… Read More »

Dependency Inversion Principle Explained

By | October 23, 2015

This c# based Dependency Inversion Principle tutorial will try to explain this very simple (and important) principle in layman terms. It is often confused with “Dependency Injection“. Just to put things straight, “Dependency Injection” is one of the ways you can implement “Dependency Inversion Principle” in your code.