This tutorial demonstrates Structured Logging using Serilog with ElasticSearch serving as the backend log repository. This post is a follow up on the beginner post I wrote on Serilog. If you are a starter on Serilog then I will recommend that you give a quick read to that post. As usual I will start with WHY followed by HOW. Continue reading “Structured Logging using Serilog”
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. Continue reading “ElasticSearch Sample Data”
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. Continue reading “Are you missing a using directive or an assembly reference?”
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.
Continue reading “Simple Serilog Tutorial”
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 of faked objects when it comes to FakeItEasy Continue reading “Faking Getters and Setters of Properties”
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 usual go for the WHY followed by HOW.
Continue reading “Specflow Step Definitions Explained”
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 first followed by HOW. Continue reading “Specflow beginner tutorial”
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 we can fake hardware like a Ninja. Continue reading “Faking hardware using FakeItEasy”
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. Continue reading “Test builder pattern using fluent interface”
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) and Dependency Injection(DI) first. Continue reading “Microsoft Unity Tutorial”