- Introduced RentPaymentCorrectionTest and RentPaymentTest to validate payment and refund logic. - Added PhoneNumberTest to ensure proper normalization of phone numbers. - Created TenantTest to verify attachment management and tenant referencing. - Implemented ReplacementRentalApiJourneyIT for end-to-end testing of rental and payment workflows. - Documented architectural decisions in ADR-0014, emphasizing strict DDD boundaries and transaction management.
576 B
576 B
Use pragmatic domain architecture in a modular monolith
Status: superseded by ADR-0014
Refactor the current backend as one Rental Management bounded context organized by domain capability, with business invariants enforced by aggregate behavior and thin HTTP/application orchestration. Keep Spring Data annotations on domain objects and avoid separate persistence models, ports, adapters, asynchronous events, or deployable services until a real boundary requires them; the future LMNP Tax and Accounting Core Domain will be a separate context consuming rental facts.