public void DeleteTest() { VerifyExists(); long id = MaintancePlans.GetId(_databasePath, _maintenancePlansName, out _errOut); bool value = MaintancePlans.Delete(_databasePath, id, out _errOut); General.HasTrueValue(value, _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); } }