Ejemplo n.º 1
0
 public ServiceBooking(Customer customer, VehicleRegistration vehicleRegistration, DateTime dueDate)
 {
     _customer = customer;
     _vehicleRegistration = vehicleRegistration;
     _dueDate = dueDate;
     _serviceBookingItems = new List<ServiceBookingItem>();
 }
Ejemplo n.º 2
0
 public ServiceBooking(Customer customer, VehicleRegistration vehicleRegistration, DateTime dueDate, string additionalInformation)
 {
     _customer = customer;
     _vehicleRegistration = vehicleRegistration;
     _dueDate = dueDate;
     _additionalInformation = additionalInformation;
     _serviceBookingItems = new List<ServiceBookingItem>();
 }
Ejemplo n.º 3
0
 public ServiceOrder(Customer customer, VehicleRegistration vehicleRegistration, string additionalInformation = null)
 {
     _customer = customer;
     _vehicleRegistration = vehicleRegistration;
     _additionalInformation = additionalInformation;
     _serviceOrderItems = new List<ServiceOrderItem>();
     _serviceOrderProduct = new List<ServiceOrderProduct>();
 }
Ejemplo n.º 4
0
        public PointRedemption(Customer customer)
        {
            if (!customer.IsInActiveMembership)
            {
                throw new ApplicationException(@"Customer is not in active membership");
            }

            _customer = customer;
            _pointRedemptionItems = new List<PointRedemptionItem>();
        }
Ejemplo n.º 5
0
        public ServiceOrder(ServiceBooking serviceBooking)
        {
            _customer = serviceBooking.Customer;
            _vehicleRegistration = _serviceBooking.VehicleRegistration;
            _additionalInformation = _serviceBooking.AdditionalInformation;

            foreach (var serviceBookingItem in _serviceBooking.ServiceBookingItems)
            {
                AddServiceOrderItem(serviceBookingItem.Service, serviceBookingItem.Price);
            }

            _serviceBooking = serviceBooking;
        }
Ejemplo n.º 6
0
 public Payment MakePayment(Customer customer, IChargable chargable)
 {
 }
Ejemplo n.º 7
0
 public PurchaseOrder(Customer customer)
 {
     _customer = customer;
     _purchaseOrderItems = new List<PurchaseOrderItem>();
 }
 public VehicleAlreadyRegisteredException(Customer customer, Vehicle vehicle)
 {
     _customer = customer;
     _vehicle = vehicle;
 }
 public MembershipRegistration(Customer customer)
 {
     _customer = customer;
 }
Ejemplo n.º 10
0
 public VehicleRegistration(Customer customer, Vehicle vehicle, DateTime expiryDate)
 {
     _registeredTo = customer;
     _registeredVehicle = vehicle;
     _expiryDate = expiryDate;
 }
Ejemplo n.º 11
0
 public VehicleRegistration(Customer customer, Vehicle vehicle)
 {
     _registeredTo = customer;
     _registeredVehicle = vehicle;
 }