What is the standard, best way to do unit testing in dotnetnuke? I was looking for SO as well as the dnn website, and could not find much information about this. I suppose dnn has something baked for unit tests or at least a library that can be connected. Where can I find more information? A tutorial on this subject would be ideal, but any resource would be appreciated.
Thank!
DotNetNuke doesn't have much testing information. As a WebForms-based project, he was not very concerned about many developers in the community.
, DNN, . MbUnit Moq , Watin -.
- WebForms MVP, , , . codeplex, . , .
, , :
app.config unit test , "", "" web.config - DNN
: ComponentFactory.InstallComponents(New ProviderInstaller("caching", GetType(CachingProvider)))
ComponentFactory.InstallComponents(New ProviderInstaller("caching", GetType(CachingProvider)))
When modular data-driven data modules:
initialize data and cache providers in your code before calling the DataProvider methods:
ComponentFactory.InstallComponents (new ProviderInstaller ("data", typeof (DataProvider)), new ProviderInstaller ("caching", typeof (CachingProvider)));