public void Should_get_car_from_parkingLotPlaces_when_GetCar_by_carId() { // given var fakeParkingLot = new FakeParkingLot(0); var expectedCar = new Car(); // when fakeParkingLot.AddCar(expectedCar); var actualCar = fakeParkingLot.GetCar(0); // then Assert.Equal(expectedCar, actualCar); }
public void Should_delete_pair_of_carId_car_car_from_parkingLotPlaces_when_GetCar_by_carId() { // given var fakeParkingLot = new FakeParkingLot(0); var expectedCar = new Car(); // when fakeParkingLot.AddCar(expectedCar); var actualCar = fakeParkingLot.GetCar(0); var isCarStillExists = fakeParkingLot.HasCarId(0); // then Assert.False(isCarStillExists); }