Exemplo n.º 1
0
 /// <summary>
 /// Verifies the exists.
 /// </summary>
 private void VerifyExists()
 {
     if (!Buyers.Exists(_databasePath, _buyerName, _buyerAddress1, _buyerAddress2, _buyerCity, _buyerState, _buyerZipCode, _buyerDob, _buyerDLic, out _errOut))
     {
         bool value = Buyers.Add(_databasePath, _buyerName, _buyerAddress1, _buyerAddress2, _buyerCity, _buyerState, _buyerZipCode, _buyerPhone, _buyerCountry, _buyerEMail, _buyerLic, _buyerWebSite, _buyerFax, _buyerDob, _buyerDLic, _buyerResident, out _errOut);
     }
 }
Exemplo n.º 2
0
        public void ExistsTest()
        {
            VerifyExists();
            bool value = Buyers.Exists(_databasePath, _buyerName, _buyerAddress1, _buyerAddress2, _buyerCity,
                                       _buyerState, _buyerZipCode, _buyerDob, _buyerDLic, out _errOut);

            General.HasTrueValue(value, _errOut);
        }
Exemplo n.º 3
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);
     }
 }