SOLID Design Patterns — Rental plan example
This is the source code provided for the exercise in lesson 12 for the SOLID Design Patterns course.
indexpage contains the original implementation of a rental plan system taken from a real project.
refactoringpage contains an alternate, cleaner implementation of almost all the original features. It uses Backbone to ease the process of defining the domain and integrate its parts.
testspage contains a Jasmine test suite for the Backbone models that are used in the refactored exercise.