示例#1
0
 public void AddNewCustomer(Customer customer)
 {
     if (customer != null && !string.IsNullOrEmpty(customer.Name) && !string.IsNullOrEmpty(customer.Email))
     {
         //customer.Add(customer);
         //NewCustomer = new Customer();
     }
 }
示例#2
0
        private IEnumerable<Customer> CreateInitialContacts()
        {
            var list = new List<Customer>();

            for (int i = 1; i < 90; i++)
            {
                var newContact = new Customer() { Name = "ContactName " + i.ToString("000"), Email = "address" + i.ToString("000") + "@test.com" };
                list.Add(newContact);
            }
            return list;
        }
示例#3
0
 public void SendEmail(Customer customer)
 {
     var emailer = new Emailer();
     emailer.SendEmail(customer.Email, customer.Name, customer.NextServiceDate);
 }