public void AfterTest()
 {
     windowManagementModule          = null;
     windowFocusEventProducer        = null;
     nativeWindowManagement          = null;
     windowMovementEventProducer     = null;
     windowResizingEventProducer     = null;
     windowStateChangedEventProducer = null;
     container.Dispose();
     container              = null;
     hookNativeMethods      = null;
     nativeWindowManagement = null;
 }
        public void BeforeTest()
        {
            windowManagementModule          = new WindowManagementModule();
            windowFocusEventProducer        = new WindowFocusEventProducer();
            windowMovementEventProducer     = new WindowMovementEventProducer();
            windowResizingEventProducer     = new WindowResizingEventProducer();
            windowStateChangedEventProducer = new WindowStateChangedEventProducer();

            container = new CompositionContainer();
            container.ComposeExportedValue(windowFocusEventProducer);
            container.ComposeExportedValue(windowMovementEventProducer);
            container.ComposeExportedValue(windowResizingEventProducer);
            container.ComposeExportedValue(windowStateChangedEventProducer);
            container.ComposeParts(windowManagementModule);

            nativeWindowManagement = new NativeWindowMock();

            hookNativeMethods = new HookNativeMethodsMock();
            hookNativeMethods.Initialize();
        }