public void CountPropertyOK()
        {
            clsServicesCollection AllServices = new clsServicesCollection();
            UIntPtr SomeCount = 0;

            AllServices.Count = SomeCount;
            Assert.AreEqual(AllServices.Count, SomeCount);
        }
        public void ThisServicePropertyOK()
        {
            clsServicesCollection AllServices  = new clsServicesCollection();
            clsServices           TestServices = new clsServices();

            TestService.Discount    = true;
            TestService.Duration    = 1;
            TestService.Price       = 1;
            TestService.Staff       = "Emily";
            TestService.ServiceName = "Haircut";

            AllServices.ThisService = TestService;
            Assert.AreEqual(AllServices.ThisService, TestService);
        }
    void DisplayServices()
    {
        clsServicesCollection Reports = new clsServicesCollection();

        lstServiceList.DataSource = Reports.ServiceList;

        //set the name of the primary key
        lstServiceList.DataValueField = "Service Name";

        //set the data field to display
        lstServiceList.DataTextField = "Staff";

        //bind the data to the list
        lstServiceList.DataBind();
    }
        public void ListandCountOK()
        {
            clsServicesCollection AllServices = new clsServicesCollection();
            List <clsServices>    TestList    = new List <clsServices>();
            clsServices           Testitem    = new clsServices();

            Testitem.Discount    = true;
            Testitem.Duration    = 1;
            Testitem.Price       = 1;
            Testitem.Staff       = "Emily";
            Testitem.ServiceName = "Haircut";
            TestList.Add(Testitem);
            AllServices.ServiceList = TestList;
            Assert.AreEqual(AllServices.Count, TestList.Count);
        }
    protected void btnApply_Click(object sender, EventArgs e)
    {
        //create an instance of the class collection
        clsServicesCollection Services = new clsServicesCollection();

        Services.ServiceByStaff(txtStaff.Text);
        lstServiceList.DataSource = Services.ServiceList;

        //set the name of the primary key
        lstServiceList.DataValueField = "Service Name";

        //set the name of the field to display
        lstServiceList.DataTextField = "Staff";

        //bind the data to the list
        lstServiceList.DataBind();
    }
    protected void btnClear_Click(object sender, EventArgs e)
    {
        clsServicesCollection Services = new clsServicesCollection();

        Services.ServiceByStaff("");

        //clear any existing filter to tidy up the interface
        txtStaff.Text             = "";
        lstServiceList.DataSource = Services.ServiceList;

        //set the name of the primary key
        lstServiceList.DataValueField = "Service Name";

        //set the name of the field to display
        lstServiceList.DataTextField = "Staff";

        //bind the data to the list
        lstServiceList.DataBind();
    }
        public void TwoRecordsPressent()
        {
            clsServicesCollection AllServices = new clsServicesCollection();

            Assert.areEqual(AllServices.Count, 2);
        }
        public void InstanceOK()
        {
            clsServicesCollection AllServices = new clsServicesCollection();

            Assert.IsNotNll(AllServices);
        }