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)); }
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)); }
public Car Pick(object token) { return(pick(token, managedParkingBoys) ?? stand.Pick(token)); }