Ejemplo n.º 1
0
        public void ClaimsAdjudicationForInvalidClaimTest()
        {
            var contract = new Contract(999, 100.0)
            {
                EffectiveDate  = DateTime.ParseExact("08-05-2010", FormatDate, _provider),
                ExpirationDate = DateTime.ParseExact("08-05-2012", FormatDate, _provider),
                Status         = Contract.Lifecycle.Active
            };
            var claim       = new Claim(888, 81.0, DateTime.ParseExact("08-05-2010", FormatDate, _provider));
            var adjudicator = new ClaimsAdjudicationService();

            adjudicator.Adjudicate(contract, claim);

            Assert.AreEqual(0, contract.Claims.Count);
        }
Ejemplo n.º 2
0
        public void ClaimsAdjudicationForExpiredContractTest()
        {
            var claim = new Claim(888, 79.0, new DateTime(2010, 05, 08));

            var pendingContract = new Contract(999, 100.0)
            {
                EffectiveDate  = DateTime.ParseExact("08-05-2010", FormatDate, _provider),
                ExpirationDate = DateTime.ParseExact("08-05-2012", FormatDate, _provider),
                Status         = Contract.Lifecycle.Expired
            };
            var adjudicator = new ClaimsAdjudicationService();

            adjudicator.Adjudicate(pendingContract, claim);

            Assert.AreEqual(0, pendingContract.Claims.Count);
        }