DotNetNuke Test Facilities and Tutorials

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!

+5
source share
3 answers

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, . , .

+4

, , :

  • app.config unit test , "", "" web.config - DNN

  • : ComponentFactory.InstallComponents(New ProviderInstaller("caching", GetType(CachingProvider)))

+2

When modular data-driven data modules:

  • Be sure to add the main DNN files + DotNetNuke.Instrumentation.dll + PetaPoco, if necessary
  • Include data and caching sections in app.config (copy sections from DNN web.config)
  • 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)));

+1
source

All Articles