From: Mike R. <mik...@us...> - 2005-03-07 05:46:20
|
Update of /cvsroot/netreflector/NetReflector/src/NetReflector.Test/resources In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21723/src/NetReflector.Test/resources Added Files: TestInstantiator.cs Log Message: Allowing Custom Instantiators to be used (used by CruiseControl.NET's Web Dashboard project) --- NEW FILE: TestInstantiator.cs --- using System; using Exortech.NetReflector.Util; namespace Exortech.NetReflector.Test.resources { public class TestInstantiator : IInstantiator { public int instantiateCallCount = 0; private readonly DefaultInstantiator realInstantiator; public TestInstantiator() { realInstantiator = new DefaultInstantiator(); } public object Instantiate(Type type) { instantiateCallCount++; return realInstantiator.Instantiate(type); } } } |