I’ve already shared basics of unit testing here. Lets see some examples of unit testing. In this post, I have used MS test framework. You can use your own testing framework.
Read MoreAuthor: Jayesh Tanna
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 MoreDependency injection in WCF service using AutoFac
Dependency injection is one form of the broader technique of inversion of control (SOLID – Dependency inversion principles). In software, There should be less coupling between component and cohesion should be high. High level module should not depend on low level modules rather should depend on Abstraction.
Read MoreIDisposable 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 MoreChain of responsibility design pattern
Introduction
In this article, we will talk about Chain Of responsibility design pattern. When we should use this design pattern and how you can implement it.
Type
Behavioral design pattern
Read More