public ParkingCalculator() { this._parkingRates = new ParkingRatesReporsitory(); _flatRates = new FlatRates(_parkingRates); _hourlyRates = new HourlyRates(_parkingRates); this._ParkingCalculator = new ParkingRatesCalculator(_flatRates, _hourlyRates); }
//Injecting Dependencies public ParkingController(IParkingRatesCalculator parkingRatesCalculator, IMapper mapper) { this._parkingRatesCalculator = parkingRatesCalculator; this._mapper = mapper; }