public void ExistsTest() { VerifyExists(); bool value = MaintancePlans.Exists(_databasePath, _maintenancePlansName, out _errOut); General.HasTrueValue(value, _errOut); }
/// <summary> /// Verifies the exists. /// </summary> private void VerifyExists() { if (!MaintancePlans.Exists(_databasePath, _maintenancePlansName, out _errOut)) { MaintancePlans.Add(_databasePath, _maintenancePlansName, _maintenancePlansOperationDetails, _maintenancePlansIntervalsInDays, _maintenancePlansIntervalInRoundsFired, _maintenancePlansNotes, out _errOut); } }
/// <summary> /// Verifies the doesnt exist. /// </summary> private void VerifyDoesntExist() { if (MaintancePlans.Exists(_databasePath, _maintenancePlansName, out _errOut)) { long value = MaintancePlans.GetId(_databasePath, _maintenancePlansName, out _errOut); MaintancePlans.Delete(_databasePath, value, out _errOut); } }