public DefaultContainer() { StationBoard = new FileStationBoard(DefaultAppConfig.ANNOUNCEMENTS_FILE, DefaultAppConfig.SCHEDULE_FILE, DefaultAppConfig.SCHEDULE_LENGTH); TflProvider = new PollingProvider(); StationState = new DefaultStationState(); AnnouncementsManager = new DefaultAnnouncementsManager(new DefaultAnnouncer()); StationOrchestrator = new DefaultOrchestrator(TflProvider, StationState, AnnouncementsManager, StationBoard); }
public void Setup() { _provider = new Mock <ITflProvider>(); _announcementsManager = new Mock <IAnnouncementsManager>(); _stationState = new Mock <IStationState>(); _board = new Mock <IStationBoard>(); _item = new Mock <ITflScheduledItem>(); _schedule = new Mock <ITflStationSchedule>(); _subject = new DefaultOrchestrator(_provider.Object, _stationState.Object, _announcementsManager.Object, _board.Object); }