public void ReportByClaimReasonNoneFound() { var FilteredClaims = new clsClaimCollection(); FilteredClaims.ReportByClaimReason("xxxxxxxxx"); Assert.AreEqual(0, FilteredClaims.Count); }
public void ReportByClaimReasonMethodOK() { var AllClaims = new clsClaimCollection(); var FilteredClaims = new clsClaimCollection(); FilteredClaims.ReportByClaimReason(""); Assert.AreEqual(AllClaims.Count, FilteredClaims.Count); }
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(); }
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); }