Enabling CWAB and Unity in SharePoint applications sets of guidance published
The Patterns & Practices Sustained Engineering has just published two sets of guidance for SharePoint to make Web Parts more testable. The approach is enabling a dependency injection container in SharePoint applications. You can download these new releases from here:
- Guidance To Enable CWAB in a SharePoint Application
- Guidance To Enable Unity in a SharePoint Application
Each of the releases include the following elements:
- A PDF document with guidance to enable CWAB/Unity in a SharePoint application to make Web Parts more testable.
- Extensions for CWAB/Unity to work on a SharePoint application
- CompositeWeb.SharePoint solution: it includes a class that implements the IWebClientApplication interface and inherits from SPHttpApplication class.
- Unity.SharePoint solution: it includes a class that inherits from SPHttpApplication and hosts a Unity container.
- A sample implementation that uses the extensions for CWAB/Unity. This solution includes a Web Part that is injected with dependencies (also has a Unit Test project).
- Sample files like the global.asax and web.config for a SharePoint application enabled with CWAB/Unity.
We also published the documentation guidance in the WCSF KB as wiki pages. You can find them here:
Enjoy