public void AddCoverSection(PaymentCoverSection paymentCoverSection) { // Make it clear that a Cover Section can only appear once if (_additionalPaymentCoverSectionContainer.Contains(paymentCoverSection)) { throw new ArgumentException(String.Format("The Cover Section Collection already contains a Cover Section with Code \"{0}\"", paymentCoverSection.Code)); } else { _additionalPaymentCoverSectionContainer.Add(paymentCoverSection); } }
public PaymentSchemeResult(string schemeCode, PaymentCoverSection primaryPaymentCoverSection) { _schemeCode = schemeCode; _primaryPaymentCoverSection = primaryPaymentCoverSection; }