How can I unit test my controller to make sure Windsor can resolve dependencies when using PerWebRequestLifestyle

核能气质少年 提交于 2019-11-30 18:09:56

I don't know if you can use the PerWebRequestLifestyle outside of ASP.NET (MVC) (I don't think you can), but you can use an IContributeComponentModelConstruction to modify the lifestyle of the components when they are registered.

This would enable you to (integration) test the container without modifying any of your Installers.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!