public void ReportByCustomerLastNameTestDataFound()
        {
            //create an instance of the filtered data
            clsCustomerCollection FilteredCustomers = new clsCustomerCollection();
            //var to store the outcome
            Boolean OK = true;

            //apply a customer last name that doesn't exist
            FilteredCustomers.ReportByCustomerLastName("Random");
            //check that the correct number of records are found
            if (FilteredCustomers.Count == 2)
            {
                //check the firest record is ID 1
                if (FilteredCustomers.CustomerList[0].CustomerID != 2)
                {
                    OK = false;
                }

                //check that the first record is ID 20
                if (FilteredCustomers.CustomerList[1].CustomerID != 42)
                {
                    OK = false;
                }
            }
            else
            {
                OK = false;
            }
            //test to see that there are no records
            Assert.IsTrue(OK);
        }
        public void ReportByCustomerLastNameNoneFound()
        {
            //create an instance of the filtrered data
            clsCustomerCollection FilteredCustomers = new clsCustomerCollection();

            //apply a customer last name that doesn't exist
            FilteredCustomers.ReportByCustomerLastName("xxx xxx");
            //test to see that there are no records
            Assert.AreEqual(0, FilteredCustomers.Count);
        }
        public void ReportByCustomerLastNameMethodOK()
        {
            //create an instance of the class containing unfiltered results
            clsCustomerCollection AllCustomers = new clsCustomerCollection();
            //create an instance of the filtered data
            clsCustomerCollection FilteredCustomers = new clsCustomerCollection();

            //apply a blank string (should return all records)
            FilteredCustomers.ReportByCustomerLastName("");
            //test to see that the two values are the same
            Assert.AreEqual(AllCustomers.Count, FilteredCustomers.Count);
        }