예제 #1
0
        public void ReportByClaimReasonNoneFound()
        {
            var FilteredClaims = new clsClaimCollection();

            FilteredClaims.ReportByClaimReason("xxxxxxxxx");
            Assert.AreEqual(0, FilteredClaims.Count);
        }
예제 #2
0
        public void ReportByClaimReasonMethodOK()
        {
            var AllClaims      = new clsClaimCollection();
            var FilteredClaims = new clsClaimCollection();

            FilteredClaims.ReportByClaimReason("");
            Assert.AreEqual(AllClaims.Count, FilteredClaims.Count);
        }
예제 #3
0
    protected void btnApply_Click(object sender, EventArgs e)
    {
        var Claims = new clsClaimCollection();

        Claims.ReportByClaimReason(txtClaimReason.Text);
        lstClaimList.DataSource     = Claims.ClaimList;
        lstClaimList.DataValueField = "ClaimID";
        lstClaimList.DataTextField  = "ClaimReason";
        lstClaimList.DataBind();
    }
예제 #4
0
        public void ReportByClaimReasonDataFound()
        {
            var FilteredClaims = new clsClaimCollection();
            var OK             = true;

            FilteredClaims.ReportByClaimReason("sem. Pellentesque ut ipsum");
            if (FilteredClaims.Count == 2)
            {
                if (FilteredClaims.ClaimList[0].ClaimID != 2)
                {
                    OK = false;
                }
                if (FilteredClaims.ClaimList[1].ClaimID != 11)
                {
                    OK = false;
                }
            }
            else
            {
                OK = false;
            }

            Assert.IsTrue(OK);
        }