Ejemplo n.º 1
0
        public void Should_return_my_car_when_i_use_my_ticket()
        {
            var boy = new SmartParkingBoy(new List <Lot> {
                new Lot(1)
            });
            const string carId  = "川A 123456";
            var          ticket = new Ticket(boy.Park(new Car(carId)));

            var car = boy.Take(ticket);

            Assert.Equal(carId, car.Id);
        }