public void WhenAddingAnotherBillToADirectDebitTransactionTheAmmountAndNumberOfBillsAreCorrectlyUpdated()
 {
     ClubMember clubMember = clubMembers["00002"];
     Invoice firstInvoice = clubMember.InvoicesList.Values.ElementAt(0);
     List<Bill> bills = new List<Bill>() { firstInvoice.Bills.Values.ElementAt(0) };
     DirectDebitMandate directDebitMandate = clubMembers["00002"].DirectDebitmandates.ElementAt(0).Value;
     int internalDirectDebitReferenceNumber = directDebitMandate.InternalReferenceNumber;
     BankAccount debtorAccount = directDebitMandate.BankAccount;
     string accountHolderName = directDebitMandate.AccountHolderName;
     DateTime mandateSignatureDate = directDebitMandate.DirectDebitMandateCreationDate;
     DirectDebitTransaction directDebitTransaction = new DirectDebitTransaction(bills, internalDirectDebitReferenceNumber, debtorAccount, accountHolderName, mandateSignatureDate);
     Assert.AreEqual((decimal)79, directDebitTransaction.Amount);
     Assert.AreEqual(1, directDebitTransaction.NumberOfBills);
     Invoice secondInvoice = clubMember.InvoicesList.Values.ElementAt(1);
     Bill bill = secondInvoice.Bills.ElementAt(0).Value;
     directDebitTransaction.AddBill(bill);
     Assert.AreEqual((decimal)158, directDebitTransaction.Amount);
     Assert.AreEqual(2, directDebitTransaction.NumberOfBills);
 }
 public void AddBilllToExistingDirectDebitTransaction(DirectDebitTransaction directDebitTransaction, Bill bill)
 {
     directDebitTransaction.AddBill(bill);
 }