Tag Archives | Resharper

ReSharper Live Template – Mocking an Interface

A short but sweet ReSharper live template that I hook up to the shortcut ‘mock’:

This template is for creating mocks inline with Moq, something I do a lot of when starting up a unit testing class. The DotSettings export file is provided below for easy importing and use: Mock.DotSettings

Continue Reading 0

Useful Knockout.js Debugging Nugget

A really short post, but this little template insert for knockout is incredibly useful when you’re not sure what’s going on inside your view model:

This snippet essentially outputs the contents of your view model as text on to your page. What I like to do with things like this is add them to […]

Continue Reading 0