Example #1
0
        public ParkingCalculator()
        {
            this._parkingRates = new ParkingRatesReporsitory();

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

            this._ParkingCalculator = new ParkingRatesCalculator(_flatRates, _hourlyRates);
        }
Example #2
0
 //Injecting Dependencies
 public ParkingController(IParkingRatesCalculator parkingRatesCalculator, IMapper mapper)
 {
     this._parkingRatesCalculator = parkingRatesCalculator;
     this._mapper = mapper;
 }