예제 #1
0
        private void ApplyCoPayment(CoPaymentPolicy coPaymentPolicy)
        {
            var coPaymentResult = coPaymentPolicy.Apply(this);

            if (InsuredCost != TotalCost && coPaymentResult.NotCoveredAmount > Money.Euro(0))
            {
                InsuredCost += coPaymentResult.NotCoveredAmount;
                TuCost      -= coPaymentResult.NotCoveredAmount;
            }
        }
예제 #2
0
 public CostSplitPolicies(CoverageCheckPolicy coverageCheckPolicy, CoPaymentPolicy coPaymentPolicy, LimitsPolicy limitsPolicy)
 {
     CoverageCheckPolicy = coverageCheckPolicy;
     CoPaymentPolicy     = coPaymentPolicy;
     LimitsPolicy        = limitsPolicy;
 }