public Customer(string name, string whatsapp, string email, Districts districts) { this.Name = name; this.Whatsapp = whatsapp; this.Email = email; this.Districts = districts; }
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; }
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)); }
public Freight(City originCity, City destinationCity, Districts destinationDistrict) : this() { this.OriginCity = originCity; this.DestinationCity = destinationCity; this.DestinationDistricts = destinationDistrict; }