Example #1
0
        public void should_can_stop_and_pick_up_when_park_have_one_empty_parking_position()
        {
            Park park = new Park(1);
            Car car = new Car("JP123");
            ParkingBoy boy = new ParkingBoy(park);

            Assert.True(boy.StopCar(car));
            Assert.Same(car, boy.PickUpCar(car.CarNumber));
        }
Example #2
0
        public void should_can_pick_up_when_customer_stopped_car()
        {
            Park park = new Park(1);
            Car car = new Car("JP123");
            ParkingBoy boy = new ParkingBoy(park);

            Assert.True(park.StopCar(car));
            Assert.Same(car, boy.PickUpCar(car.CarNumber));
        }