コード例 #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;
        }
コード例 #2
0
ファイル: RestaurantNotifier.cs プロジェクト: elbandit/PPPDDD
 public bool NotifyBookingConfirmation(Restaurant Restaurant, Customer Customer, Guid Id, BookingDetails BookingDetails)
 {
     throw new NotImplementedException();
 }
 public bool NotifyBookingConfirmation(Restaurant Restaurant, Customer Customer, Guid Id, BookingDetails BookingDetails)
 {
     throw new NotImplementedException();
 }
コード例 #4
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);
        }