public static List<Customer> createCustomers() { List<Customer> list = new List<Customer>(); Customer customer = new Customer(); customer.firstName = "George"; customer.lastName = "Clooney"; customer.gender = Gender.male; customer.product = Product.WordPerfect.ToString(); customer.dateOfPurchase = new DateTime(2014, 10, 31); customer.address = new Address("P.O. Box 222", "Santa Fe", "NM", 87501); customer.getGeneratedProperties(); list.Add(customer); customer = new Customer(); customer.firstName = "Carly"; customer.lastName = "Fiorina"; customer.gender = Gender.female; customer.product = Product.Word.ToString(); customer.dateOfPurchase = new DateTime(2015, 12, 25); customer.address = new Address("35 Hewlett-Packard Rd", "Mendocino", "CA", 21345); customer.getGeneratedProperties(); list.Add(customer); customer = new Customer(); customer.firstName = "Jeff"; customer.lastName = "Bezos"; customer.gender = Gender.male; customer.product = Product.WordPerfect.ToString(); customer.dateOfPurchase = DateTime.Now.AddDays(-2); // set up customer as buying product 2 days ago customer.address = new Address("1200 World Domination Blvd", "Seattle", "WA", 91834); customer.getGeneratedProperties(); list.Add(customer); return list; }
public static List<Customer> createCustomers() { List<Customer> list = new List<Customer>(); Customer customer = new Customer(); customer.firstName = "George"; customer.lastName = "Clooney"; customer.gender = Gender.male; customer.product = Product.WordPerfect; customer.dateOfPurchase = new DateTime(2014, 10, 31); customer.address = new Address("P.O. Box 222", "Santa Fe", "NM", 87501); list.Add(customer); customer = new Customer(); customer.firstName = "Carly"; customer.lastName = "Fiorina"; customer.gender = Gender.female; customer.product = Product.Word; customer.dateOfPurchase = new DateTime(2015, 12, 25); customer.address = new Address("35 Hewlett-Packard Rd", "Mendocino", "CA", 21345); list.Add(customer); return list; }