Esempio n. 1
0
 public Customer(string name, string whatsapp, string email, Districts districts)
 {
     this.Name      = name;
     this.Whatsapp  = whatsapp;
     this.Email     = email;
     this.Districts = districts;
 }
Esempio n. 2
0
 private Order(string name, string email, string whatsapp, Districts districts, string address, string note, PaymentMethod paymentMethod, Func <DateTime, string> orderNumberGenerator)
     : this()
 {
     this.Customer            = new OrderCustomer(name, email, whatsapp, address, districts);
     this.TransactionDate     = DateTime.Now;
     this.OrderNumber         = orderNumberGenerator.Invoke(this.TransactionDate);
     this.Payment             = new OrderPayment(paymentMethod);
     this.Note                = note;
     this.DueDateConfirmation = TransactionDate.AddDays(1);
     this.Status              = OrderStatus.DRAFT;
 }
Esempio n. 3
0
 public static Order Create(string name, string email, string whatsapp, Districts districts, string address, string note, PaymentMethod paymentMethod, Func <DateTime, string> orderNumberGenerator)
 {
     return(new Order(name, email, whatsapp, districts, address, note, paymentMethod, orderNumberGenerator));
 }
Esempio n. 4
0
 public Freight(City originCity, City destinationCity, Districts destinationDistrict) : this()
 {
     this.OriginCity           = originCity;
     this.DestinationCity      = destinationCity;
     this.DestinationDistricts = destinationDistrict;
 }