Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EventCartItem"/> class.
 /// </summary>
 /// <param name="eventOccurrenceId">The event occurrence id.</param>
 /// <param name="summary">Event Occurrence Summary</param>
 /// <param name="donor">The donor information.</param>
 public EventCartItem(int eventOccurrenceId, EventOccurrenceSummaryDto summary, DonorInformation donor)
 {
     EventOccurrenceId = eventOccurrenceId;
     EventTitle = summary.EventTitle;
     Attendees = new List<CartAttendeeDto>();
     AddedDate = DateTime.UtcNow;
     CostCenter = summary.CostCenter;
     Donor = donor;
     Cost = summary.EffectiveCost;
     Description = summary.EventSummaryDescription;
     StartDate = summary.StartDate;
     SpecialInstructions = summary.SpecialInstructions;
     LocationName = summary.EffectiveLocationName;
     EventAllowDonation = summary.EventAllowDonation;
     EventDonationButtonText = string.IsNullOrEmpty(summary.EventDonationButtonText) ? "Donate" : summary.EventDonationButtonText;
     EventDonationDescription = summary.EventDonationDescription;
     EventDonationExternalUrl = summary.EventDonationExternalUrl;
     HasPaymentProcessor = summary.PaymentProcessorConfiguration != null;
     HasDiscountCode = summary.HasDiscountCode;
     HasGroupDiscountCode = summary.HasGroupDiscountCode;
     AvailableSeats = summary.AvailableSeats;
     AllowPayOnSite = summary.AllowPayOnSite;
     IsGuestDemographicInfoRequired = summary.IsGuestDemographicInfoRequired;
     Column1DynamicFields = summary.Column1DynamicFields != null ? summary.Column1DynamicFields.ToList() : new List<DynamicColumnFieldDto>();
     Column2DynamicFields = summary.Column2DynamicFields != null ? summary.Column2DynamicFields.ToList() : new List<DynamicColumnFieldDto>();
     BrightWhistleBusinessUnitId = summary.BrightWhistleBusinessUnitId;
 }
 public InitializeRegistrationConfirmationMessageBuilder(IEnumerable<CartAttendeeDto> cartAttendeeDtoList, IEnumerable<EventOccurrence> eventOccurrenceTable, DonorInformation donorInformation)
 {
     _cartAttendeeDtoList = cartAttendeeDtoList;
     _eventOccurrenceTable = eventOccurrenceTable;
     _donorInformation = donorInformation;
 }