示例#1
0
        public void should_be_able_to_pick_car()
        {
            smartParkingBoy.Manage(new ParkingLot());
            var car   = new Car();
            var token = smartParkingBoy.Park(car);

            Assert.Same(car, smartParkingBoy.Pick(token));
        }
示例#2
0
 public void should_able_to_let_his_parking_boy_to_park_car()
 {
     var parkingBoy = new ParkingBoy();
     var parkingLot = new ParkingLot();
     parkingBoy.Manage(parkingLot);
     parkingManager.Manage(parkingBoy);
     var car = new Car();
     var token = parkingManager.Park(car);
     Assert.Same(car, parkingBoy.Pick(token));
 }
示例#3
0
        public void should_able_to_let_his_parking_boy_to_park_car()
        {
            var parkingBoy = new ParkingBoy();
            var parkingLot = new ParkingLot();

            parkingBoy.Manage(parkingLot);
            parkingManager.Manage(parkingBoy);
            var car   = new Car();
            var token = parkingManager.Park(car);

            Assert.Same(car, parkingBoy.Pick(token));
        }
示例#4
0
 public Car Pick(object token)
 {
     return(pick(token, managedParkingBoys) ?? stand.Pick(token));
 }