Exemple #1
0
 public Booking(
     BookingId id,
     DateTime startDate,
     DateTime endDate,
     CustomerId customerId,
     CustomerName customerName,
     EmailAddress customerEmail,
     BookingType bookingType,
     DiscountType discountType,
     DiscountValue discountValue,
     TaxType taxType,
     TaxValue taxValue
     )
 {
     this.id            = id;
     this.startDate     = startDate;
     this.endDate       = endDate;
     this.customerId    = customerId;
     this.customerName  = customerName;
     this.customerEmail = customerEmail;
     this.bookingType   = bookingType;
     this.discountType  = discountType;
     this.discountValue = discountValue;
     this.taxType       = taxType;
     this.taxValue      = taxValue;
 }
Exemple #2
0
 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;
 }
Exemple #3
0
 public Discount(DiscountType type, DiscountValue value)
 {
     this.type  = type;
     this.value = value;
 }