예제 #1
0
 public MovieTicket(MovieScreening movieScreening, bool isPremium, int rowNr, int seatNr)
 {
     this.movieScreening = movieScreening;
     this.isPremium      = isPremium;
     this.rowNr          = rowNr;
     this.seatNr         = seatNr;
 }
예제 #2
0
파일: Program.cs 프로젝트: Justnuked/SOA3
        static void Main(string[] args)
        {
            Movie movie = new Movie("OwO");

            MovieScreening movieScreening = new MovieScreening(movie, DateTime.Now, 12);

            Order o = new Order(1, true);

            MovieTicket ticket1 = new MovieTicket(movieScreening, true, 1, 1);
            MovieTicket ticket2 = new MovieTicket(movieScreening, false, 2, 1);
            MovieTicket ticket3 = new MovieTicket(movieScreening, false, 3, 1);
            MovieTicket ticket4 = new MovieTicket(movieScreening, false, 4, 1);

            o.AddSeatReservation(ticket1);
            //o.AddSeatReservation(ticket2);
            //o.AddSeatReservation(ticket3);
            //o.AddSeatReservation(ticket4);

            Console.WriteLine(o.CalculatePrice());


            Console.ReadKey();
        }
예제 #3
0
 public void AddScreening(MovieScreening screening)
 {
     screenings.Add(screening);
 }