http://www.cnblogs.com/yangecnu/p/Introduce-Dependency-Injection.html
小结及分析如下
var repo = Factory.FactoryMethod("S");
var hc = new HomeController(repo);//通过构造函数,依赖ProductRepository抽象类,
将实现了ProductReposity抽象类的实例(SqlProductRepository类的实例)“注入进来”/或传入进来
http://www.cnblogs.com/zhangchenliang/archive/2013/01/08/2850970.html