Beispiel #1
0
 public void Run()
 {
     foreach (Invoice i in _invoices)
     {
         string emailSent = InvoiceMailer.SendInvoice(i.Email, i.TotalPrice, i.ToString());
         Console.WriteLine(emailSent);
     }
 }
Beispiel #2
0
 public string SendInvoiceEmail(Invoice inv)
 {
     return(InvoiceMailer.SendInvoice(inv.TheCustomer.EmailAddress.Address, inv.TotalPrice, inv.ToString()));
 }
Beispiel #3
0
        public string TestCase(int invIndex)
        {
            Invoice inv = _invoices[invIndex];

            return(InvoiceMailer.SendInvoice(inv.Email, inv.TotalPrice, inv.ToString()));
        }