private void ShowButton_Click(object sender, EventArgs e)
        {
            this.reservationsListView.Items.Clear();
            string licencePlate = licencePlateBox.Text;

            try
            {
                Reserve[] reservations = system.GetAllReservationsOf(licencePlate);
                if (reservations != null)
                {
                    foreach (Reserve item in reservations)
                    {
                        this.reservationsListView.Items.Add(item.ToString());
                    }
                }
                else
                {
                    this.reservationsListView.Items.Add("Empty");
                }
            }
            catch (Exception exception)
            {
                MessageBox.Show(exception.Message);
            }
        }
        public void GetAllReservationsOf_NotRegistered_NullMatches()
        {
            MainSystem system = new MainSystem {
                Country = Country.Uruguay
            };

            Reserve[] actualreservationArray = system.GetAllReservationsOf("SBS 1234");
            Assert.IsNull(actualreservationArray);
        }
        public void GetAllReservationsOf_OKxRegisteredLP_AllMatches()
        {
            MainSystem system = new MainSystem();

            this.AddReserve_UY_At(ref system, "17:00", "30");

            Reserve[] excpectedReservationArray = new Reserve[1];
            excpectedReservationArray[0] = MakeUYReserveAt(30, 17, 0);

            Reserve[] actualreservationArray = system.GetAllReservationsOf(standarLicencePlate);


            bool result = Enumerable.SequenceEqual(actualreservationArray, excpectedReservationArray);

            Assert.IsTrue(result);
        }
        public void GetAllReservationsOf_S2Sx1234_Exception()
        {
            MainSystem system = new MainSystem();

            system.GetAllReservationsOf("S2S 1234");
        }
        public void GetAllReservationsOf_SBSx123_Exception()
        {
            MainSystem system = new MainSystem();

            system.GetAllReservationsOf("SBS 123");
        }