public void TryGetHistoryAutoStart_ReturnsFalseIfNotFound() { var ret = Service.TryGetHistoryAutoStart(Guid, out AutoStartEntry retAutoStart); Assert.IsFalse(ret); Assert.IsNull(retAutoStart); }
public void RevertRemove(Guid id) { Logger.Info("Removal of {id} should be reverted", id); if (AutoStartService.TryGetHistoryAutoStart(id, out AutoStartEntry autoStart)) { RevertRemove(autoStart); } else { var message = "Failed to get auto start to add"; Logger.Error(message); MessageService.ShowError(message); } }