feat(registratie): WP-34 — phone field + BRP address read-only
Reshape the adreswijziging form into a contact-change form: the BRP address is
authoritative and shown read-only (you change it at the gemeente), and the phone
number becomes the editable/submittable field. New Telefoonnummer value object
(parse-don't-validate); backend RejectPhoneChange re-validates as authority.
POST /change-requests now carries { telefoon } (typed client regenerated).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -172,9 +172,10 @@ public class SubmissionRuleTests
|
||||
Assert.Null(SubmissionRules.RejectZeroUren(40));
|
||||
|
||||
[Theory]
|
||||
[InlineData("Lange Voorhout 9", "2514 EA", null)] // valid
|
||||
[InlineData("", "2514 EA", "Vul straat en huisnummer in.")]
|
||||
[InlineData("Straat 1", "nope", "Voer een geldige postcode in, bijv. 1234 AB.")]
|
||||
public void Change_request_is_validated(string straat, string postcode, string? expected) =>
|
||||
Assert.Equal(expected, SubmissionRules.RejectChangeRequest(straat, postcode));
|
||||
[InlineData("0612345678", null)] // valid mobile
|
||||
[InlineData("070 123 45 67", null)] // valid landline, formatting stripped
|
||||
[InlineData("nope", "Voer een geldig telefoonnummer in, bijv. 0612345678.")]
|
||||
[InlineData("12345", "Voer een geldig telefoonnummer in, bijv. 0612345678.")]
|
||||
public void Phone_change_is_validated(string telefoon, string? expected) =>
|
||||
Assert.Equal(expected, SubmissionRules.RejectPhoneChange(telefoon));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user