public string GetReservationPlainTextMessage(Seanse seanse, Seat seat)
 {
     return string.Format("You have reserved seat {0} in row {1} for '{2}' at {3}",
         seat.SeatNumber,
         seat.Row,
         seanse.Movie.Title,
         seanse.StartTime);
 }
 public string GetReservationHtmlMessage(Seanse seanse, Seat seat)
 {
     return string.Format("You have reserved seat <b>{0}</b> in row <b>{1}</b> for '{2}' at {3}",
         seat.SeatNumber,
         seat.Row,
         seanse.Movie.Title,
         seanse.StartTime);
 }
Example #3
0
        public void Handle(SeatAssignedToUser @event)
        {
            User   user   = _userRepository.GetUser(@event.UserId);
            Seanse seanse = _roomRepository.GetSeanse(@event.SeanseId);

            foreach (var notifier in _notifiers)
            {
                notifier.NotifyThatReservationIsReady(user, seanse, @event.Seat);
            }
        }