Пример #1
0
        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();
        }
Пример #2
0
 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);
 }
Пример #3
0
 public ControlMessages(ScoreQueue scoreQueue, Playback channel1, Playback channel2)
 {
     this.scoreQueue = scoreQueue;
     this.channel1 = channel1;
     this.channel2 = channel2;
 }