Applied DDD

From business rules to review skills

A practical example combining a business spec, assisted review and an xUnit test.

A spec defines verifiable behavior. If a WhatsApp campaign requires active consent at dispatch, withdrawing consent after queueing must prevent the send.

A reusable skill can ask the agent to trace the execution path to the provider, cite the rule and point to the code where the check is missing.

An xUnit test can then run the worker after consent is withdrawn and verify that the provider is never called.

All articles

Portfolio assistant