Exemple #1
0
        public void ReportByCarColour()
        {
            clsCarsCollection AllCars           = new clsCarsCollection();
            clsCarsCollection FilteredCarColour = new clsCarsCollection();

            FilteredCarColour.ReportByCarColour("");
            Assert.AreEqual(AllCars.Count, FilteredCarColour.Count);
        }
Exemple #2
0
    protected void btnApplyCarColour_Click(object sender, EventArgs e)
    {
        string            Filter = txtFilterCarMake.Text;
        clsCarsCollection Cars   = new clsCarsCollection();

        Cars.ReportByCarColour(Filter);
        lstCarList.Items.Clear();
        lstCarList.DataSource     = Cars.CarList;
        lstCarList.DataValueField = "CarNo";
        lstCarList.DataTextField  = "CarMake";
        lstCarList.DataBind();
    }