public void EditTest() { VerifyExists(); long id = Appraisers.GetId(_databasePath, _appraisersName, out _errOut); bool value = Appraisers.Update(_databasePath, id, _appraisersName, "222 here", "N/A", "myCity", "ky", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", true, out _errOut); General.HasTrueValue(value, _errOut); }
public void DeleteTest() { VerifyExists(); long id = Appraisers.GetId(_databasePath, _appraisersName, out _errOut); bool value = Appraisers.Delete(_databasePath, id, out _errOut); General.HasTrueValue(value, _errOut); }
public void GetIdTest() { VerifyExists(); long value = Appraisers.GetId(_databasePath, _appraisersName, out _errOut); TestContext.WriteLine($"Id: {value}"); General.HasTrueValue(value > 0, _errOut); }
public void GetByIdTest() { VerifyExists(); long id = Appraisers.GetId(_databasePath, _appraisersName, out _errOut); List<AppraisersContactDetails> value = Appraisers.Get(_databasePath, id, out _errOut); PrintList(value); General.HasTrueValue(value.Count > 0, _errOut); }
/// <summary> /// Verifies the doesnt exist. /// </summary> private void VerifyDoesntExist() { if (Appraisers.Exists(_databasePath, _appraisersName, out _errOut)) { long id = Appraisers.GetId(_databasePath, _appraisersName, out _errOut); bool value = Appraisers.Delete(_databasePath, id, out _errOut); } }
public void GetNameTest() { VerifyExists(); long id = Appraisers.GetId(_databasePath, _appraisersName, out _errOut); string value = Appraisers.GetName(_databasePath, id, out _errOut); TestContext.WriteLine($"Name: {value}"); General.HasValue(value, _errOut); }