문제

In Visual Studio 2010, here was way to test ASP.NET application with Behaviors.Now, in VS 2012, they have upgrade to Fakes Framework. How do you achieve the same with Fakes?

Creating Fakes assembly for “System.Web” doesn’t create behavior models for “System.Web”. i.e. I can’t find Bhttpcontext object which use to be there when you moles “System.Web” assembly in “System.Web.Behaviors” namespace.

도움이 되었습니까?

해결책

Moles behaviors are not included with Fakes in Visual Studio 2012. SharePoint Emulators offer similar functionality, however, System.Web emulators are not public at this time. As a workaround, you can implement emulators with shims.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top