Esempio n. 1
0
        public void ExistsTest()
        {
            VerifyExists();
            bool value = Manufacturers.Exists(_databasePath, _manufacturersTestName, out _errOut);

            General.HasTrueValue(value, _errOut);
        }
Esempio n. 2
0
 /// <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);
     }
 }
Esempio n. 3
0
 /// <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);
     }
 }