private void OnRoomsReserved(RoomsReserved @event)
        {
            var reservation = new Reservation
            {
                Id           = @event.ReservationId,
                RoomTypeId   = @event.RoomTypeId,
                GuestId      = @event.GuestId,
                NoOfUnits    = @event.NoOfUnits,
                CheckInDate  = @event.CheckInDate,
                CheckoutDate = @event.CheckoutDate
            };

            _reservationsRepository.Save(reservation);
        }
Example #2
0
 private void OnRoomsReserved(RoomsReserved roomsReserved)
 {
     _roomsReserved.Add(roomsReserved);
 }