public MainWindow() { InitializeComponent(); tweets = new ObservableCollection<ScoreInfo>(); playlist = new ObservableCollection<ScoreInfo>(); TweetListView.ItemsSource = tweets; PlaylistView.ItemsSource = playlist; scoreQueue = new ScoreQueue(new TwitterScoreFeed(), new Interpreter(new Tokeniser()), new Notifications()); scoreQueue.QueueChanged += () => Dispatcher.BeginInvoke(DispatcherPriority.Normal, new Action(BindToView)); scoreQueue.StartListening(); InitialiseMessageListener(); }
public void Setup() { feed = new Mock<IScoreFeed>(); notifications = new Mock<INotifications>(); interpreter = new Mock<Interpreter>(null); queue = new ScoreQueue(feed.Object, interpreter.Object, notifications.Object); }
public ControlMessages(ScoreQueue scoreQueue, Playback channel1, Playback channel2) { this.scoreQueue = scoreQueue; this.channel1 = channel1; this.channel2 = channel2; }