Pregunta

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.

¿Fue útil?

Solución

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top