public void StartPlayback_ItemAtGivenIndexIsAudio_SendsStartAudioPlaybackMessageWithGivenItem() { _subject.Items.AddRange(GeneratePlaylistItems()); _subject.StartPlayback(1); _mockEventAggregator.Messages.Any(m => m.GetType() == typeof(StartAudioPlaybackMessage)).Should().BeTrue(); }
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(); }