public ConfigurationManager(string taxiName, int minimumPayment, int perKilometerCost) { TaxiFactory taxiFactory = new TaxiFactory(); taxi = taxiFactory.GetTaxi(taxiName); costCalculator = new CostCalculator(minimumPayment, perKilometerCost); }
public TaxiBooker() { configurationManager = new ConfigurationManager("Ola", 30, 5); taxi = configurationManager.TaxiType(); distanceTravelled = new DistanceTravelled(6); costCalculator = configurationManager.GetCostCalculator(); }