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