public int BuyTickets(MovieShow movieShow, int[] customersAge) { TicketOrder order = new TicketOrder(movieShow); foreach (int age in customersAge) { ITicket ticket = GetAppropriateTicket(age); order.AddTicket(ticket); } _ticketOrderRepository.AddOrder(order); return(order.GetTotal()); }
internal void AddOrder(TicketOrder order) { _ticketOrders.Add(order); }