ScopedRegionManager + UnitTest's

Apr 6, 2010 at 4:12 PM


in a method i create a ScopedRegionManager, the problem is , i'm not able to UnitTest this method is there any idea how do do this.




Apr 7, 2010 at 2:08 PM

Hi Peter,

You can find an example of a UnitTest for a method containing a ScopedRegionManager in the EmployeesControllerFixture.cs file inside the Controllers folder from the UIComposition.Modules.Employee.Tests project in the UI Composition Quickstarts (both the View Discovery or the View Injection). Also, remember that in order to Unit Test a method you must make that method public.

As we don't know exactly what the problem you are having is, we are not able to provide a more specific response.

I hope you find this helpful.

Guido Leandro Maliandi

Apr 8, 2010 at 9:54 AM

Hi Guido,

works perfectly.

Thanks a lot