예제 #1
0
        public ServiceMonitorContentViewModel(IStatusMonitorService statusMonitorService)
        {
            _statusMonitorService = statusMonitorService;
            LoadServices();

            StartServiceCommand   = new DelegateCommand <ApplicationService>(StartService, CanStartService);
            StopServiceCommand    = new DelegateCommand <ApplicationService>(StopService, CanStopService);
            RestartServiceCommand = new DelegateCommand <ApplicationService>(RestartService, CanRestartService);
            RefreshServiceCommand = new DelegateCommand <ApplicationService>(RefreshService);
        }
 public void TestSetup()
 {
     _unitOfWork        = new UnitOfWork();
     _appMonitorService = new ApplicationStatusMonitorService(_unitOfWork);
 }