c# - Dependency Injection and In-memory integration testing with MVC -
ASP.Net Web API allows for in-memory integration tests where both application-under-test and test fixture The same app domain makes it easy to modify the IoC container binding for test stability so that many items are missing during the integration test.
In contrast, ASP.NET MVC was not designed to allow in-memory integration tests. Steve Sanderson prepares to provide this capability. However, it appears that the framework causes the MVC application to run within an appdomain, which is different from the test stability.
Has any IOC tested any kind of container binding to stay in control, and still despite the fact that the target affects the application that it is in a separate app domain?
If I understand your words, then I have only one idea. You must completely duplicate your reference MVC app. Then you can test whatever you want. I do not know how to test it under different app domains.
Comments
Post a Comment