public Booking( BookingId id, DateRange dateRange, Customer customer, BookingType bookingType, Discount discount, Tax tax ) { this.id = id; this.dateRange = dateRange; this.customer = customer; this.bookingType = bookingType; this.discount = discount; this.tax = tax; }
public Booking( BookingId id, DateRange bookingDateRange, Customer customer, BookingType bookingType, Discount discount, Tax tax ) { this.id = id; this.startDate = bookingDateRange.StartDate; this.endDate = bookingDateRange.EndDate; this.customerId = customer.Id; this.customerName = customer.Name; this.customerEmail = customer.EmailAddress; this.bookingType = bookingType; this.discountType = discount.Type; this.discountValue = discount.Value; this.taxType = tax.Type; this.taxValue = tax.Value; }