예제 #1
0
        public void ReportByDispatchStatusOK()
        {
            clsShippingCollection AllShipments = new clsShippingCollection();
            //create an instance of filtered data
            clsShippingCollection FilteredShipments = new clsShippingCollection();

            //apply true value (will be different from original list)
            FilteredShipments.ReportByDispatchedTrue();
            //test to see two values are not the same
            Assert.AreNotEqual(AllShipments.Count, FilteredShipments.Count);
        }
예제 #2
0
    protected void btnDispatched_Click(object sender, EventArgs e)
    {
        clsShippingCollection Shipments = new clsShippingCollection();

        Shipments.ReportByDispatchedTrue();
        lstShippingList.DataSource = Shipments.ShippingList;
        //set name of primary key
        lstShippingList.DataValueField = "ShippingId";
        //set name of field to display
        lstShippingList.DataTextField = "ShippingId";
        //bind data to the list
        lstShippingList.DataBind();
    }