public void TestCleanup() { _prVm = null; _vm.Dispose(); _vm = null; _mgr = null; }
public void TestInit() { ServiceContainer.Instance.ClearAllServices(); ServiceContainer.Instance.AddService <IMessageBoxService>(new MockMessageBoxService()); _mgr = new MockDomeManager(); _vm = new DomeMotionViewModel(_mgr); _prVm = new PrivateObject(_vm); Globals.UISyncContext = TaskScheduler.Default; }