IoC Windsor Castle Unit Testing Business Object
We are trying to introduce DI and an IoC container (Castle) into an existing ASP.Net Webforms application. We have a Web Project, a Services Project and a Business Obj Project.
Our intention is to introduce DI and unit testing in the Business Project. The Business project doesn't know about the web project. The Dependency goes from Web > Services > Business. The web project is our root that we will install and register the components.
Once the components are in registered, how, in the Services project do we call Resolve on the container to get the correct Business Object, since the Service Project doesn't know about the Web project?
链接地址: http://www.djcxy.com/p/59872.html下一篇: IoC温莎城堡单元测试业务对象