Try our conversational search powered by Generative AI!

Mattias Lövström
Aug 26, 2010
  5343
(0 votes)

TDD for your custom page providers

I have created a project for developing page providers with test driven development, and my idée is that it should be great if we have an open source project where many EPiServer developers can contribute so the developing of custom page providers gets easier.

So please sign-up to be a contributor of this project, by sending me a CodePlex message.

My first version of the project includes 43 integration tests and is testing the version handling of PageData objects based on the earlier blog I wrote Version state graph of a PageData object. Those tests uses an own MemoryPageProvider (original written by Johan Björnfot) and doesn’t requires any EPiServer database. This page provider are only changed so it fulfills the requirements in the test cases, but I hope in the end it should be a really good example for writing a custom page provider that has similar functionality as EPiServers local page provider.

Requirements:

- EPiserver CMS 6

- MS Test (or NUnit)

Download source:

PageProviderTests for EPiServer CMS on CodePlex

Aug 26, 2010

Comments

Please login to comment.
Latest blogs
Azure AI Language – Extractive Summarisation in Optimizely CMS

In this article, I demonstrate how extractive summarisation, provided by the Azure AI Language platform, can be leveraged to produce a set of summa...

Anil Patel | Apr 26, 2024 | Syndicated blog

Optimizely Unit Testing Using CmsContentScaffolding Package

Introduction Unit tests shouldn't be created just for business logic, but also for the content and rules defined for content creation (available...

MilosR | Apr 26, 2024

Solving the mystery of high memory usage

Sometimes, my work is easy, the problem could be resolved with one look (when I’m lucky enough to look at where it needs to be looked, just like th...

Quan Mai | Apr 22, 2024 | Syndicated blog

Search & Navigation reporting improvements

From version 16.1.0 there are some updates on the statistics pages: Add pagination to search phrase list Allows choosing a custom date range to get...

Phong | Apr 22, 2024