Ejemplo n.º 1
0
 /// <summary>
 /// Verifies the doesnt exist.
 /// </summary>
 private void VerifyDoesntExist()
 {
     if (Buyers.Exists(_databasePath, _buyerName, _buyerAddress1, _buyerAddress2, _buyerCity, _buyerState, _buyerZipCode, _buyerDob, _buyerDLic, out _errOut))
     {
         long id    = Buyers.GetId(_databasePath, _buyerName, out _errOut);
         bool value = Buyers.Delete(_databasePath, id, out _errOut);
     }
 }
Ejemplo n.º 2
0
        public void DeleteTest()
        {
            VerifyExists();
            long id = Buyers.GetId(_databasePath, _buyerName, out _errOut);

            TestContext.WriteLine($"Deleting Buyr with the id of {id} ");
            bool value = Buyers.Delete(_databasePath, id, out _errOut);

            General.HasTrueValue(value, _errOut);
        }