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