public override void runBeforeEachTest() { contextView = new TestContextView(); context = new TestContext( contextView ); actor = new TestActor() injector = context.getInjector() UIImpersonator.addChild( contextView ); injector.injectInto( actor ); }
public override void runBeforeEachTest() { contextView = new TestContextView(); eventDispatcher = new EventDispatcher(); injector = new UnityInjector( XML_CONFIG ); reflector = new UnityReflector(); mediatorMap = new MediatorMap( contextView, injector, reflector ); injector.mapValue( FrameworkElement, contextView ); injector.mapValue( IInjector, injector ); injector.mapValue( IEventDispatcher, eventDispatcher ); injector.mapValue( IMediatorMap, mediatorMap ); UIImpersonator.addChild( contextView ); }