question 282 Advanced OOP & Design · easy
Mixins that never run
OrderRepository should tidy each record's keys (strip and lower-case them), refuse records without an order_id, and then store them, returning the stored record. Records are being stored untidied and unchecked, and when that is fixed, save returns None. Fix the class line and the mixin that loses the result.
`save(record)`keys stripped and lower-cased, then checked for
order_id (ValueError if missing, nothing stored), then stored; returns the stored recordOrdertidy first, then validate, then store