public void ReportByCarMake() { clsCarsCollection AllCars = new clsCarsCollection(); clsCarsCollection FilteredCarMake = new clsCarsCollection(); FilteredCarMake.ReportByCarMake(""); Assert.AreEqual(AllCars.Count, FilteredCarMake.Count); }
protected void btnApplyCarMake_Click(object sender, EventArgs e) { string Filter = txtFilterCarMake.Text; clsCarsCollection Cars = new clsCarsCollection(); Cars.ReportByCarMake(Filter); lstCarList.Items.Clear(); lstCarList.DataSource = Cars.CarList; lstCarList.DataValueField = "CarNo"; lstCarList.DataTextField = "CarMake"; lstCarList.DataBind(); }