Example #1
0
 public Order(Customer customer, Salesman salesman, string deliveryStreet, string deliveryCity, string deliveryCountry, DateTime orderedOn)
 {
     this.Customer = customer;
     this.Salesman = salesman;
     this.DeliveryStreet = deliveryStreet;
     this.DeliveryCity = deliveryCity;
     this.DeliveryCountry = deliveryCountry;
     this.OrderedOn = orderedOn;
     this.Items = new List<OrderItem>();
 }
Example #2
0
 private Order CreateOrder(string deliveryCountry)
 {
     var customer = new Customer("Luis", "Palacios", "54115678654");
     var salesman = new Salesman("Alberto", "Martinez", 4000, 4);
     return new Order(customer, salesman, "Los claveles 452", "New York", deliveryCountry, DateTime.Now);
 }