예제 #1
0
        static void Main(string[] args)
        {
            TouristAttraction schonburn      = new TouristAttraction("schonburn");
            TouristAttraction museum         = new TouristAttraction("museum");
            VisitCommand      visitSchonburn = new VisitCommand(schonburn, 11);
            VisitCommand      visitmuseum    = new VisitCommand(museum, 19);
            TripPlan          planA          = new TripPlan();

            planA.Add(visitSchonburn);
            //planA.Run();
            TripPlanAdapter tpa = new TripPlanAdapter();

            tpa.Run(new List <ICommand>()
            {
                visitSchonburn, visitmuseum
            });
        }
예제 #2
0
 public VisitCommand(TouristAttraction attraction, int t)
 {
     touristAttraction = attraction;
     time = t;
 }