Ejemplo n.º 1
0
 public void ConfigureParking()
 {
     _parkingLookup = _dataProvider.GetConfiguration();
 }
Ejemplo n.º 2
0
        public static IParkingLot Create(int numberOfParkingLevels)
        {
            IParkingLevel           parkingLevel           = FactoryParkingLevel.Create(numberOfParkingLevels);
            IParkingLocatorProvider parkingLocatorProvider = new ParkingLocatorProvider(parkingLevel.GetConfiguration());
            IBookingTracker         bookingTracker         = new BookingTracker();

            IParkingLot parkingLot = new ParkingLot(parkingLevel, parkingLocatorProvider, bookingTracker);

            return(parkingLot);
        }