public void TestReportByBrandNameNoneFound()
        {
            clsBrandCollection Filtered = new clsBrandCollection();

            // apply brand name that doesnt exist
            Filtered.ReportByBrandName("xNotxaBrand asdasd");
            // ensure there are no records
            Assert.AreEqual(0, Filtered.Count);
        }
        public void TestReportByBrandName()
        {
            clsBrandCollection AllBrands = new clsBrandCollection();
            clsBrandCollection Filtered  = new clsBrandCollection();

            // apply a blank string which should return all brands
            Filtered.ReportByBrandName("");
            Assert.AreEqual(AllBrands.Count, Filtered.Count);
        }
        public void TestReportByBrandNameSomeFound()
        {
            // create filtered collection
            clsBrandCollection Filtered = new clsBrandCollection();
            // var to store outcome
            Boolean Ok = true;

            // apply name that doesnt exist
            Filtered.ReportByBrandName("TestBrandInc");
            if (Filtered.BrandList.Count == 2)
            {
                if (Filtered.BrandList[0].BrandID != 1395)
                {
                    Ok = false;
                }
            }
            else
            {
                Ok = false;
            }
            Assert.IsTrue(Ok);
        }