public void Add(InvoicePayment pmt)
        {
            if (_payments.Contains(pmt)) return;

            pmt.CustomerName = CustomerName;
            _payments.Add(pmt);
        }
        public void can_add_same_invoice_payment_only_once()
        {
            var invoicePayment1 = new InvoicePayment();
            _sut.Add(invoicePayment1);
            _sut.Add(invoicePayment1);

            _sut.InvoicePayments.Length.ShouldEqual(1);
        }
        public void can_get_invoice_payments()
        {
            _sut.InvoicePayments.Length.ShouldEqual(0);

            var invoicePayment1 = new InvoicePayment();
            var invoicePayment2 = new InvoicePayment();
            _sut.Add(invoicePayment1);
            _sut.Add(invoicePayment2);

            _sut.InvoicePayments[0].ShouldEqual(invoicePayment1);
            _sut.InvoicePayments[1].ShouldEqual(invoicePayment2);
        }