Exemple #1
0
        public void Should_return_second_lot_when_parking_boy_use_senior_rule()
        {
            parkingBoy = new ParkingBoy(new List <ParkingLot> {
                parkingLot1, parkingLot2
            }, new MostAvailableParkingBoyRule());

            var parkingLot = parkingBoy.FindOneValidParkingLot();

            Assert.Equal(parkingLot2.ID, parkingLot.ID);
        }
Exemple #2
0
        public void Should_return_first_lot()
        {
            var parkingLot = parkingBoy.FindOneValidParkingLot();

            Assert.Equal(parkingLot1.ID, parkingLot.ID);
        }