Exemple #1
0
        public void should_able_to_let_his_parking_boy_who_has_availible_parking_lot_to_park_cars()
        {
            var parkingBoy      = new ParkingBoy();
            var smartParkingBoy = ParkingBoy.SmartEvolution();

            parkingBoy.Manage(new ParkingLot(1));
            smartParkingBoy.Manage(new ParkingLot(1));

            parkingManager.Manage(parkingBoy, smartParkingBoy);

            var car = new Car();

            parkingBoy.Park(new Car());
            var tokenOfParkingBoy = parkingManager.Park(car);

            Assert.Same(car, smartParkingBoy.Pick(tokenOfParkingBoy));
        }
Exemple #2
0
 public SmartParkingBoyFact()
 {
     smartParkingBoy = ParkingBoy.SmartEvolution();
 }