static void Main() { // method for setting day of week from console input. var day = ConsoleInputValidation.GetValidadedDayOfWeek(); // Initializing (generating) random parameters for 10 Kids. var groupOfRandomKids = new RandomKidGenerator(); // Initializing (generating) random parameters for attractions (Pony, Swan, Batman) var groupOfRandomAttractions = new RandomAttractionGenerator(); //Create new Attraction Manager with already generated(prepared) data for Kids and Attractions var generalAttractionManager = new AttractionManager(groupOfRandomKids, groupOfRandomAttractions, day); // open attraction generalAttractionManager.ToRide(); Console.ReadLine(); }
// Public constructor Attraction manager with input paramteres as Kids + Attractions + Day public AttractionManager(RandomKidGenerator lisfOfRandomKids, RandomAttractionGenerator listOfOpenRandomAttractions, Days day) { LisfOfRandomKids = lisfOfRandomKids; ListOfOpenRandomAttractions = listOfOpenRandomAttractions; WeekDay = day; }