Bringing Mockery into your Unit Test Project

These instructions are for Mockery v0.82

Assuming you have the following components already referenced in your UnitTest project
  • RhinoMocks
  • An IoC container (Autofac v 1.4.5.676, Unity 1.2 or StructureMap 2.4.9)
  • CommonServiceLocator.Autofac located in autofac contrib

Add the following references in your unittest project:
  • Mockery.Core
  • Microsoft.Practices.ServiceLocation (CommonServiceLocator)
  • System.ComponentModel.Composition (MEF)

Add your associated Ioc CommonContainer:
  • For autofac, reference CommonContainer.Mockery.Autofac
  • For Unity 1.2, reference CommonContainer.Mockery.Unity12
  • For StructureMap, reference CommonContainer.Mockery.StructureMap

You are now ready to start using Mockery to build your unit tests.

Last edited Jan 4, 2010 at 3:48 AM by sdhebert, version 2

Comments

No comments yet.