public void ExistsTest() { VerifyExists(); bool value = Manufacturers.Exists(_databasePath, _manufacturersTestName, out _errOut); General.HasTrueValue(value, _errOut); }
/// <summary> /// Verifies the exists in case the test runs out of order this will makre sure that the data is in the database. /// </summary> private void VerifyExists() { if (!Manufacturers.Exists(_databasePath, _manufacturersTestName, out _errOut)) { Manufacturers.Add(_databasePath, _manufacturersTestName, out _errOut); } }
/// <summary> /// Verifies the does not exist in the database before the test runs just in case it runs out of order /// </summary> private void VerifyDoesNotExist() { if (Manufacturers.Exists(_databasePath, _manufacturersTestName, out _errOut)) { long id = Manufacturers.GetId(_databasePath, _manufacturersTestName, out _errOut); Manufacturers.Delete(_databasePath, id, out _errOut); } }