Joined February 2013
·

Johann Gerell

Stockholm, Sweden
·
·
·

Posted to Manual Dependency Injection over 1 year ago

Well, you haven't really done anything :)

Old:

MyBusinessLayer _myBusinessLayer = new MyBusinessLayer();

var results = _myBusinessLayer.GetAll();

New:

MyBusinessLayer _myBusinessLayer = BL<MyBusinessLayer>.GenericBL;

var results = _myBusinessLayer.GetAll();

...you just wrote it on one line.

Achievements
19 Karma
0 Total ProTip Views
Interests & Skills