Archive for the 'CWAB' Category

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:

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.

SharePoint Releases

We also published the documentation guidance in the WCSF KB as wiki pages. You can find them here:

Enjoy