Bringing Mockery into your Unit Test Project

These instructions are for Mockery v0.8

Assuming you have the following components already referenced in your UnitTest project
  • RhinoMocks
  • Autofac version 1.4.5.676
  • 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:
  • In this case, add CommonContainer.Mockery.Autofac

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

Last edited Jan 1, 2010 at 1:36 PM by sdhebert, version 2

Comments

No comments yet.