14.17Test "no side effect"
For invalid input:
POST /customers
→ 400
then SOQL:
SELECT Id
FROM Account
WHERE External_Customer_ID__c = :testId
Expected:
0 records
This proves validation happens before the write.
For invalid input:
POST /customers
→ 400
then SOQL:
SELECT Id
FROM Account
WHERE External_Customer_ID__c = :testId
Expected:
0 records
This proves validation happens before the write.