Beispiel #1
0
        public void Should_Return_False_Given_Parking_Lot_Not_Exist_When_Remove_ParkingLot()
        {
            //given
            var parkingLot = new ParkingLot();
            var parkingBoy = new ParkingBoy(new List <ParkingLot>()
            {
            });

            //when
            var result = parkingBoy.RemoveParkingLot(parkingLot);

            //then
            Assert.False(result);
        }
Beispiel #2
0
        public void Should_Remove_Parking_Lot_Given_Parking_Lot_Exist_When_Remove_ParkingLot()
        {
            //given
            var parkingLot = new ParkingLot();
            var parkingBoy = new ParkingBoy(new List <ParkingLot>()
            {
                parkingLot
            });

            //when
            var result = parkingBoy.RemoveParkingLot(parkingLot);

            //then
            Assert.Equal(0, parkingBoy.ParkingLotsCount);
        }