public void Given_Command_With_RegistrationNumber_Then_Get_RegistrationNumber()
        {
            //Given: command as 'slot_number_for_registration_number KA-01-HH-3141'
            string command = "slot_number_for_registration_number KA-01-HH-3141";
            //When: I call VehicleRegistrationNumber object
            string result = _vehicleRegistrationNumber.GetNumber(command);
            //Then: I get 'KA-01-HH-3141'
            string expected = "KA-01-HH-3141";

            Assert.AreEqual(expected, result);
        }
        public string ExecuteCommand(string command)
        {
            string message = string.Empty;

            try
            {
                string registrationNumber            = _vehicleRegistrationNumber.GetNumber(command);
                VehicleDetailsModel[] vehicleDetails = _parkingRepository.GetParkingDetails();
                int slot = _slotByRegistrationNumber.GetSlotNumber(vehicleDetails, registrationNumber);
                if (slot > 0)
                {
                    message = slot.ToString();
                }
                else
                {
                    message = "Not found";
                }
                return(message);
            }
            catch (Exception ex)
            {
                throw;
            }
        }