Ejemplo n.º 1
0
        // Initial object - no ORM to worry about here
        // but will this approach be compatible with an ORM?
        public static RestaurantBooking CreateBooking(Restaurant restaurant, Customer customer, BookingDetails details)
        {
            var id = Guid.NewGuid();
            var notifier = new RestaurantNotifier();
            
            // Redesign RestaurantBooking entity to suit this style of construction
            //return new RestaurantBooking(restaurant, customer, details, id, notifier);

            return null;
        }
Ejemplo n.º 2
0
 public bool NotifyBookingConfirmation(Restaurant Restaurant, Customer Customer, Guid Id, BookingDetails BookingDetails)
 {
     throw new NotImplementedException();
 }