EPiAbstractions 1.2 Released – Facades for EPiServer CMS 6

EPiAbstractions has (finally) been updated for EPiServer CMS 6. Version 1.2 also features two new interfaces and corresponding implementations, IPageReferenceFacade, so you can isolate your code from PageReference.StartPage, and IFilterForVisitorFacade so you can easily write code that both checks access rights and is testable.

While previous releases had facades for both EPiServer CMS, EPiServer.Common and EPiServer Community this release only features facades for classes in EPiServer CMS. Hopefully the release of EPiServer Community version 4 will make the facades for Common and Community redundant. Otherwise I’ll probably create a separate project for Common and Community in the future.

There still is a problem with some of the concrete implementations, like DataFactoryFacade, in that it has a static constructor that adds listeners to events in DataFactory, making it hard to use DataFactoryFacade in unit tests. The simple solution is of course to use IDataFactoryFacade using dependency injection (you can read more about DI in my introduction to Inversion of Control) in your code. However, I do know some people have requested that this be fixed and it definitely is on my todo list.

PS. For updates about new posts, sites I find useful and the occasional rant you can follow me on Twitter. You are also most welcome to subscribe to the RSS-feed.

Follow me on Twitter

  1. @chraas You might want to use it for complex parts of the site and not use it for simple rendering pages. 2 days ago
  2. @chraas In theory more SOLID, but I'm not sure it's worth the price. 2 days ago
  3. @chraas Be warned that you're introducing one big chunk of complexity with EPiMVP :) 2 days ago
follow me

Latest comments

  1. Berra S wrote "Read your post at http://joelabrahamsson.com/entry/using-xfo..." on PageData objects not returned as typed when using Page Type Builder and FindPagesWithCriteria
  2. Linus wrote "1 up for behaviour being as close as expected as possible!" on A common problem with Page Type Builder and UniqueValuePerLanguage set to false
  3. Joel Abrahamsson wrote "Hi Hans, Could it be that you previously didn't have Page..." on Page Type Builder 2.0 released

About this site

This blog is built with EPiServer Community, EPiServer CMS, ASP.NET MVC and a bunch of other great products. The source code is available for download at the projects page, where you also can read more about this site and my other projects.

read more