public RideRecalculationService(IParkRecalculationSubscriber parkRecalculationSubscriber, IWaitTimesRepository waitTimesRepository, IAggregationRepository aggregationRepository) { _parkRecalculationSubscriber = parkRecalculationSubscriber; _waitTimesRepository = waitTimesRepository; _aggregationRepository = aggregationRepository; }
public ThemeParkOrchestrator(IWeatherService weatherService, IWaitTimesRepository persister, IParkRecalculationPublisher parkRecalculationPublisher, IAnimalKingdomService animalKingdomService, ICaliforniaAdventureService californiaAdventureService, IDisneyLandService disneyLandService, IDisneyLandParisService disneyLandParisService, IEpcotService epcotService, IHollywoodStudiosService hollywoodStudiosService, IMagicKingdomService magicKingdomService, IWaltDisneyStudiosService waltDisneyStudiosService) { _weatherService = weatherService; _persister = persister; _parkRecalculationPublisher = parkRecalculationPublisher; _themeParkServices.Add(animalKingdomService); _themeParkServices.Add(californiaAdventureService); _themeParkServices.Add(disneyLandService); _themeParkServices.Add(disneyLandParisService); _themeParkServices.Add(epcotService); _themeParkServices.Add(hollywoodStudiosService); _themeParkServices.Add(magicKingdomService); _themeParkServices.Add(waltDisneyStudiosService); }