Ejemplo n.º 1
0
        public ParkingCalculator()
        {
            this._parkingRates = new ParkingRatesReporsitory();

            _flatRates   = new FlatRates(_parkingRates);
            _hourlyRates = new HourlyRates(_parkingRates);

            this._ParkingCalculator = new ParkingRatesCalculator(_flatRates, _hourlyRates);
        }
Ejemplo n.º 2
0
 public ParkingRatesCalculator(IFlatRates FlatRates, IHourlyRates HourlyRates)
 {
     this._flatRates   = FlatRates;
     this._hourlyRates = HourlyRates;
 }