예제 #1
0
        public ConfigurationManager(string taxiName, int minimumPayment, int perKilometerCost)
        {
            TaxiFactory taxiFactory = new TaxiFactory();

            taxi           = taxiFactory.GetTaxi(taxiName);
            costCalculator = new CostCalculator(minimumPayment, perKilometerCost);
        }
예제 #2
0
 public TaxiBooker()
 {
     configurationManager = new ConfigurationManager("Ola", 30, 5);
     taxi = configurationManager.TaxiType();
     distanceTravelled = new DistanceTravelled(6);
     costCalculator    = configurationManager.GetCostCalculator();
 }