Esempio n. 1
0
        internal void Book(Customer costumer, IEnumerable <DateTime> dates)
        {
            if (!costumer.IsThereAnyBookingForTheDates(dates))
            {
                Booking booking = new Booking(this, costumer, dates, CalculateTotalPrice(costumer.CostumerType, dates));

                Bookings.Add(booking);
                costumer.AddBooking(booking);
            }
        }