private void ApplyCoPayment(CoPaymentPolicy coPaymentPolicy) { var coPaymentResult = coPaymentPolicy.Apply(this); if (InsuredCost != TotalCost && coPaymentResult.NotCoveredAmount > Money.Euro(0)) { InsuredCost += coPaymentResult.NotCoveredAmount; TuCost -= coPaymentResult.NotCoveredAmount; } }
public CostSplitPolicies(CoverageCheckPolicy coverageCheckPolicy, CoPaymentPolicy coPaymentPolicy, LimitsPolicy limitsPolicy) { CoverageCheckPolicy = coverageCheckPolicy; CoPaymentPolicy = coPaymentPolicy; LimitsPolicy = limitsPolicy; }