public void FilterClaimDetails_NoValidClaimDetails_NoneReturned()
		{
			List<XiapClaim.ClaimDetail> xiapClaimDetails = new List<XiapClaim.ClaimDetail>();

			XiapClaim.ClaimDetail cd1 = new XiapClaim.ClaimDetail();
			cd1.ClaimDetailID = 1;
			cd1.PolicyLinkLevel = null;
			xiapClaimDetails.Add(cd1);

			XiapClaim.ClaimHeader ch = new XiapClaim.ClaimHeader();
			ch.ClaimDetails = xiapClaimDetails.ToArray();

			XiapClaim.ClaimDetail[] results = ClaimTransferDataTransform.FilterClaimDetails(ch);

			Assert.IsNotNull(results);
			Assert.AreEqual(0, results.Count());
		}
		public void FilterClaimDetails_OneValidClaimDetail_OneReturned()
		{
			List<XiapClaim.ClaimDetail> xiapClaimDetails = new List<XiapClaim.ClaimDetail>();

			XiapClaim.ClaimDetail cd1 = new XiapClaim.ClaimDetail();
			cd1.ClaimDetailID = 1;
			cd1.PolicyLinkLevel = (short)StaticValues.PolicyLinkLevel.Header;
			xiapClaimDetails.Add(cd1);

			XiapClaim.ClaimHeader ch = new XiapClaim.ClaimHeader();
			ch.ClaimDetails = xiapClaimDetails.ToArray();

			XiapClaim.ClaimDetail[] results = ClaimTransferDataTransform.FilterClaimDetails(ch);

			Assert.IsNotNull(results);
			Assert.AreEqual(1, results.Count());
			Assert.IsTrue(results.Contains(cd1));
		}
		public void FilterClaimDetails_TwoValidandTwoInvalidClaimDetails_TwoReturned()
		{
			List<XiapClaim.ClaimDetail> xiapClaimDetails = new List<XiapClaim.ClaimDetail>();

			XiapClaim.ClaimDetail cd1 = new XiapClaim.ClaimDetail();
			cd1.ClaimDetailID = 1;
			cd1.PolicyLinkLevel = null;
			xiapClaimDetails.Add(cd1);

			XiapClaim.ClaimDetail cd2 = new XiapClaim.ClaimDetail();
			cd2.ClaimDetailID = 2;
			cd2.PolicyLinkLevel = 0;
			xiapClaimDetails.Add(cd2);

			XiapClaim.ClaimDetail cd3 = new XiapClaim.ClaimDetail();
			cd3.ClaimDetailID = 3;
			cd3.PolicyLinkLevel = (short)StaticValues.PolicyLinkLevel.Header;
			xiapClaimDetails.Add(cd3);

			XiapClaim.ClaimDetail cd4 = new XiapClaim.ClaimDetail();
			cd4.ClaimDetailID = 4;
			cd4.PolicyLinkLevel = null;
			xiapClaimDetails.Add(cd4);

			XiapClaim.ClaimHeader ch = new XiapClaim.ClaimHeader();
			ch.ClaimDetails = xiapClaimDetails.ToArray();

			XiapClaim.ClaimDetail[] results = ClaimTransferDataTransform.FilterClaimDetails(ch);

			Assert.IsNotNull(results);
			Assert.AreEqual(2, results.Count());
			Assert.IsFalse(results.Contains(cd1));
			Assert.IsTrue(results.Contains(cd2));
			Assert.IsTrue(results.Contains(cd3));
			Assert.IsFalse(results.Contains(cd4));
		}