Esempio n. 1
0
        public void ConfirmRemove_ConfirmsHistoryAutoStart()
        {
            Service.AllHistoryAutoStarts.Add(AutoStartEntry);

            Service.ConfirmRemove(Guid);

            Assert.AreEqual(ConfirmStatus.Confirmed, AutoStartEntry.ConfirmStatus);
        }
 public void ConfirmRemove(AutoStartEntry autoStart)
 {
     Task.Run(() => {
         try {
             AppStatus.IncrementRunningActionCount();
             Logger.Trace("ConfirmRemove called");
             AutoStartService.ConfirmRemove(autoStart);
         } catch (Exception e) {
             var message = $"Failed to confirm remove of {autoStart}";
             var err     = new Exception(message, e);
             Logger.Error(err);
             MessageService.ShowError(message, e);
         } finally {
             AppStatus.DecrementRunningActionCount();
         }
     });
 }