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