public void FilterByPartRequiredNoneFound()
        {
            //Create an instance of the class containing filtered results
            clsCarRepairsCollection FilteredCarRepairs = new clsCarRepairsCollection();

            //apply a blank string
            FilteredCarRepairs.FilterByPartRequired("XXXX");
            //test to see two values are the same
            Assert.AreEqual(0, FilteredCarRepairs.Count);
        }
    void FilterRepairs()
    {
        //create an instance
        clsCarRepairsCollection CarRepair = new clsCarRepairsCollection();

        //Pass the text box value through the filter method
        CarRepair.ThisCarRepair.PartRequired = txtMechanicFilter.Text;
        CarRepair.FilterByPartRequired(CarRepair.ThisCarRepair.PartRequired);
        //set the datasource for the list boc to the car repair list
        lstMechanicRepairs.DataSource = CarRepair.CarRepairList;
        //Give each line the value of primary CarRepairID
        lstMechanicRepairs.DataValueField = "CarRepairID";
        //Show the part required field in the list
        lstMechanicRepairs.DataTextField = "PartRequired";
        //Bind the data to the list
        lstMechanicRepairs.DataBind();
    }