示例#1
0
 public bool BuySeats(Schedules schedule, string MapSeats)
 {
     if (schedule == null || MapSeats == "")
     {
         return(false);
     }
     return(sche.AddMapSeats(schedule, MapSeats));
 }
示例#2
0
        public void TestAddMapSeatsForScheduleTrue()
        {
            Schedules schedu = new Schedules(1, 1, 1, new DateTime(2018, 7, 20), new TimeSpan(21, 0, 0), new TimeSpan(21, 0, 0), "MapSeat", 45000);

            Assert.True(sch.AddMapSeats(schedu, "A B C D F E G H J K L M;10;"));
        }