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 ); }
public void RunBeforeEachTest() { contextView = new TestContextView(); eventDispatcher = new EventDispatcher(); injector = new UnityInjector(); reflector = new UnityReflector(); mediatorMap = new MediatorMap( contextView, injector, reflector ); injector.MapValue( typeof(FrameworkElement), contextView ); injector.MapValue( typeof(IInjector), injector ); injector.MapValue( typeof(IEventDispatcher), eventDispatcher ); injector.MapValue( typeof(IMediatorMap), mediatorMap ); TestPanel.Children.Add( contextView ); }