Exemplo n.º 1
0
        public void notify_play_list_has_been_archived()
        {
            var aPlaylistId = APlaylist.Id;

            playListHasBeenArchived.Handle(new PlayListHasBeenArchived(aPlaylistId));

            playListNotifier.Received().NotifyPlayListHasBeenArchived(aPlaylistId);
        }
Exemplo n.º 2
0
        public async Task notify_play_list_has_been_archived_and_send_to_websocket()
        {
            var aPlaylistId = APlaylist.Id;
            var @event      = new PlayListHasBeenArchived(aPlaylistId);

            await playListHasBeenArchived.Handle(@event);

            playListNotifier.Received().NotifyPlayListHasBeenArchived(aPlaylistId);
            await websocket.Received().PushMessageWithEventToAll(@event);
        }