|
by Patrik Hägne via Legend and truth on 8/7/2009 12:15:00 PM
I added a new feature to FakeItEasy the other day, it lets you put a fake wrapper around a real instance. This means that all calls that are not explicitly configured to do anything different are delegated to the wrapped instance, this gives you the ability to fake out only a certain method on a fake. For example, you might have a web service of some sort:public interface IStoreService
{
IEnumerable<IProduct> FindAllProducts();
int BuyProduct(IProduct product);
}
public interface
... [ read more ]
|