Tag Archives | Moq

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

Unit Testing ADXStudio CrmMetal Data Context

One thing I’ve been doing a lot of work with recently is ADX Studio CRM Metal for Microsoft Dynamics CRM. If you don’t know already, CRM Metal builds a linq-to-crm type data context model for you, using the Dynamics CRM web services. It’s a really great piece of work, and I can’t imagine extending CRM […]

Continue Reading 0