public void StartPlayback_ItemAtGivenIndexIsAudio_SendsStartAudioPlaybackMessageWithGivenItem()
        {
            _subject.Items.AddRange(GeneratePlaylistItems());

            _subject.StartPlayback(1);

            _mockEventAggregator.Messages.Any(m => m.GetType() == typeof(StartAudioPlaybackMessage)).Should().BeTrue();
        }
예제 #2
0
        public void HandlePlayMessage_TheCurrentItemIsPaused_SendsAResumePlaybackMessage()
        {
            _subject.Items.Add(new PlaylistItem());
            _subject.StartPlayback(0);
            _subject.Pause();

            _subject.Handle(new PlayMessage());

            _mockEventAggregator.Messages.Any(m => m.GetType() == typeof(ResumePlaybackMessage)).Should().BeTrue();
        }