Unit Testing – A Sample Approach

Any explanation of Unit Testing is incomplete without a definition of a 'Unit' up front. A unit can be defined as the smallest piece of code that ideally discharges a single responsibility, is aware of what is needed by it to perform that responsibility, is aware of the output it generates and finally is aware of the other units of... Continue Reading →

Dependency Injection – A Foundation

Dependency Injection Pattern (DI) in itself allows a class's dependencies to be 'given' to the class instead of the class having to create new instances of the dependencies within itself. However, it is prudent to step back and understand some fundamentals that allow one to implement DI and reap the benefits that DI has to... Continue Reading →

Blog at WordPress.com.

Up ↑