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. @tim_abell The gigantic ones are for customers who specifically ask for them only :) 1 months ago
  2. Looking to buy a gigantic easter egg filled with candy for delivery in Stockholm. Any recommendations? 1 months ago
  3. @strandberg_m Du måste skriva om resultatet efteråt! 1 months ago
follow me

Latest comments

  1. Joel Abrahamsson wrote "Hi Jonas! The fluent API is really geared towards working..." on Building a search page for an EPiServer site using Truffler
  2. Jonas wrote "Thank you for one more great write up! If you're not lucky ..." on Building a search page for an EPiServer site using Truffler
  3. David Knipe wrote "The CategoriesFacet method will save me a load of headaches ..." on Cool new features in the Truffler .NET API

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