Given that we have refactored our plugin in the previous recipe, we will now demonstrate how easy it is to swap a concrete DAL class with an alternative implementation.
In this recipe, we will replace the LINQ EmailDataAccessLayer implementation with a QueryExpression implementation. We will also drop the unit of the work design pattern and use IOrganizationService instead of OrganisationServiceContext.