Tag Archives: unit testing

Unit tests for angular services

I’m trying to follow john papa’s excellent angular design principles article. One aspect to this is setting up routes that resolve service calls that can immediately be called by controllers using the ‘controllerAs’ syntax. However, the question arises of how to test these? After trawling round loads of different articles, I’ve cobbled together a solution that works (for better or worse).

Continue reading “Unit tests for angular services” »

Unit testing Umbraco 7

I’ve implemented the wonderful Hybrid Framework for Umbraco and got it upgraded to Umbraco 7. All good. But…as the site continues to grow and gets more complex, I’m feeling more and more scared of doing big development. This post looks at how I set up unit testing using NUnit, Microsoft Fakes and Moq. I used help from Andy Butlands post on using Microsoft Fakes, so kudos there!

Continue reading “Unit testing Umbraco 7” »