public TaxiBooker() { configurationManager = new ConfigurationManager("Ola", 30, 5); taxi = configurationManager.TaxiType(); distanceTravelled = new DistanceTravelled(6); costCalculator = configurationManager.GetCostCalculator(); }
public int CalculatingCost(DistanceTravelled distanceTravelled) { int cost = distanceTravelled.distanceInKilometer * perKilometerCost; if (cost < minimumCost) { return(minimumCost); } return(cost); }