Sitecore.FakeDb – code generation with Sitecore.FakeDb.Construct

If you ever tried to write unit tests for your Sitecore solution, you should be aware of Sitecore.FakeDb unit testing framework. Sitecore.FakeDb is great! You can find lots of tutorials and examples right on GitHub Wiki here. The problem I faced is that in real-world scenarios I normally need to mimic the template structure I … Continue reading Sitecore.FakeDb – code generation with Sitecore.FakeDb.Construct

Inversion of Control and dependency management with Sitecore configuration factory

Today, when we talk about modern software application development, its quite obvious that using Inversion of Control (IoC) design principle is a must have. Having ability to change dependencies of the component without changing the component itself is very important for any kind of application I think. When you creating a Sitecore website you still … Continue reading Inversion of Control and dependency management with Sitecore configuration factory

Fortis & Sitecore Tutorial 3 – using Sitecore ContentSearch API

Sitecore ContentSearch API is a rather powerful functionality that gives you pretty much unlimited capabilities in retrieving sets of items in your Sitecore installation using Lucene or SOLR search engines which Sitecore currently supports. Using Fortis framework in your Sitecore solution gives you auto-generated model (using TDS or any other way of to generate it) … Continue reading Fortis & Sitecore Tutorial 3 – using Sitecore ContentSearch API

@Html.Sitecore().Rendering(pathOrId) does not apply “VaryBy” settings

This week I have faced with one unexpected issue in Sitecore 8.1. We are declaring few renderings on the layout using the Rendering method of the SitecoreHelper class in Sitecore.Mvc.dll. The issue can be reproduced by setting the "Cacheable" to true and applying the "VaryBy" settings. In result I can see that the "Cacheable" is … Continue reading @Html.Sitecore().Rendering(pathOrId) does not apply “VaryBy” settings

Fortis & Sitecore Tutorial 2 – Renderings

Let's continue... Today will demonstrate a simple and convenient way of implementing Sitecore renderings which Fortis provides out of the box. The latest Fortis version is built to support Sitecore MVC rendering types. View Renderings Controller Renderings You are more than welcome to organize your razor views the usual way, but in the demo solution … Continue reading Fortis & Sitecore Tutorial 2 – Renderings