Unit testing

In this post, I’ll share stuffs related to Unit testing only. I’ll share examples of Unit testing in later posts.

What is Unit testing?

Unit means a small portion of your code. So Unit testing means test each small-small functionalities of an application. In procedural programming, unit is a whole module but in object oriented programming, it can be a class, an interface or even a method.

Read More

IDisposable interface

Many times, it happens that we need to implement IDisposable interface in our class. E.g. we have created a class and this class has some managed resources as well as some unmanaged resources. Now, in our whole project, all other classes / services started to consume this class. After consuming of a class, its responsibility of developer to release / dispose consumed objects.

Read More

Facade design pattern

Type: Structural design pattern

Description:

‘Facade’ means ‘outward appearance

Lets take a simple example. When you visit any house, from outside its look really nice. Colorful walls, garden etc. But when you step in inside the house, you can see that all household items are not at their place. Some items are here and some items are there. There is full mess in the house. So just looking at the facade of the house, viewer would never know the internal structure of house, building blocks etc.

Read More