|
by Patrik Hägne via Legend and truth on 11/1/2009 12:39:00 PM
In this post I’ll describe a way that lets you specify default configurations for specific types so that any time a fake of that type is created this default configuration will be applied. In FakeItEasy there’s a concept called a fake object container represented by the interface IFakeObjectContainer which has two methods, one for resolving/creating fakes and one for configuring fakes, in this post I’m going to focus on the configuration part.namespace FakeItEasy.Api
{
using System;
usin
... [ read more ]
|