Esempio n. 1
0
        private void ApplyLimit(LimitsPolicy limitPolicy)
        {
            var limitApplicationResult = limitPolicy.Apply(this);

            if (InsuredCost != TotalCost && limitApplicationResult.IsApplied)
            {
                InsuredCost            += limitApplicationResult.NotCoveredAmount;
                TuCost                 -= limitApplicationResult.NotCoveredAmount;
                AmountLimitConsumption += limitApplicationResult.LimitConsumption;
            }
        }
Esempio n. 2
0
 public CostSplitPolicies(CoverageCheckPolicy coverageCheckPolicy, CoPaymentPolicy coPaymentPolicy, LimitsPolicy limitsPolicy)
 {
     CoverageCheckPolicy = coverageCheckPolicy;
     CoPaymentPolicy     = coPaymentPolicy;
     LimitsPolicy        = limitsPolicy;
 }