/// <summary> /// Verifies the doesnt exist. /// </summary> private void VerifyDoesntExist() { if (GunSmiths.Exists(_databasePath, _gunSmithName, out _errOut)) { long id = GunSmiths.GetId(_databasePath, _gunSmithName, out _errOut); bool value = GunSmiths.Delete(_databasePath, id, out _errOut); } }
public void EditTest() { VerifyExists(); long id = GunSmiths.GetId(_databasePath, _gunSmithName, out _errOut); bool value = GunSmiths.Update(_databasePath, id, _gunSmithName, "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 GetIdTest() { VerifyExists(); long value = GunSmiths.GetId(_databasePath, _gunSmithName, out _errOut); TestContext.WriteLine($"Id: {value}"); General.HasTrueValue(value > 0, _errOut); }
public void DeleteTest() { VerifyExists(); long id = GunSmiths.GetId(_databasePath, _gunSmithName, out _errOut); bool value = GunSmiths.Delete(_databasePath, id, out _errOut); General.HasTrueValue(value, _errOut); }
public void HasWorkOrdersnAttachedTest() { VerifyExists(); long id = GunSmiths.GetId(_databasePath, _gunSmithName, out _errOut); int value = GunSmiths.HasWorkOrdersnAttached(_databasePath, id, out _errOut); General.HasTrueValue(value == 0, _errOut); }
public void GetByIdTest() { VerifyExists(); long id = GunSmiths.GetId(_databasePath, _gunSmithName, out _errOut); List <GunSmithContacts> value = GunSmiths.Get(_databasePath, id, out _errOut); PrintList(value); General.HasTrueValue(value.Count > 0, _errOut); }
public void GetNameTest() { VerifyExists(); long id = GunSmiths.GetId(_databasePath, _gunSmithName, out _errOut); string value = GunSmiths.GetName(_databasePath, id, out _errOut); TestContext.WriteLine($"Name: {value}"); General.HasValue(value, _errOut); }