maxscott / cab-meter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cab Meter

Describes and executes the rules for determining the cost of a cab ride given some inputs. Relatively SOLID.

The Ember app has no logic/tests/validations, just model, template, binding. The TripsController's GET calculates the trip's cost and returns it in the response. It uses the FareCalculator with tests which uses the ICalculationRules with tests. Lastly, this particular RuleFactory is integration tested here.

About


Languages

Language:JavaScript 97.7%Language:C# 2.2%Language:CoffeeScript 0.0%Language:ASP 0.0%Language:CSS 0.0%