Unit testing in Sitecore is overlooked and not used enough. In this article i am showcasing one of the ways to implement unit testing with Glass.Mapper and Moq library in a Sitecore 8.2 solution.
Recently I had to create a custom pipeline for a 404 page in Sitecore and write a unit test for it. I am going to demonstrate how to implement 404 page in a controller action and then we are going to write a unit test for it.
Just a quick overview of couple of unit test samples for a custom Sitecore pipleline utilizing Glass Mapper and Moq.