## Goal Turn the carrier-selection logic into an explicitly tested engineering artifact. ## Completed - [x] Added dedicated `CargoAPI.Tests` xUnit project. - [x] Added Moq-based isolation for repository dependencies. - [x] Non-positive desi rejects without persistence. - [x] Exact lower boundary is covered. - [x] Exact upper boundary is covered. - [x] Multiple matching configurations select the cheapest carrier. - [x] Documented above-range extra-desi example is covered (`13`, max `10`, base `32`, plus `4` → `44`). - [x] Missing carrier configuration fails without persistence. - [x] Unit tests run in GitHub Actions and the latest CI is green. - [x] README documents the automated test command. ## Remaining edge cases - [ ] Inactive carrier configurations at the repository/integration boundary. - [ ] Equal-price/tie behavior if product policy requires deterministic selection. - [ ] Below-all-ranges behavior after the domain rule is explicitly decided. - [ ] Gap-between-ranges behavior after the domain rule is explicitly decided. The two undefined pricing cases are tracked separately in issue #3 so tests do not accidentally freeze an unintended business rule.
Goal
Turn the carrier-selection logic into an explicitly tested engineering artifact.
Completed
CargoAPI.TestsxUnit project.13, max10, base32, plus4→44).Remaining edge cases
The two undefined pricing cases are tracked separately in issue #3 so tests do not accidentally freeze an unintended business rule.