예제 #1
0
 public void TestCleanup()
 {
     _prVm = null;
     _vm.Dispose();
     _vm  = null;
     _mgr = null;
 }
예제 #2
0
        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;
        }