Exemple #1
0
        //Injecting ParkingSpots to ParkingLot
        public ParkingLot(IEnumerable <ParkingSpot> parkingSpots, ISpotSearchService spotSearchService)
        {
            if (parkingSpots == null || !parkingSpots.Any() || spotSearchService == null)
            {
                throw new ApplicationException("Invalid parking lot setup");
            }

            _parkingSpots      = parkingSpots;
            _spotSearchService = spotSearchService;
        }
Exemple #2
0
 public void SetUp()
 {
     _svc = new SpotSearchService();
 }