public void PlayListGetAll()
        {
            // Act
            var playLists = _repo.GetAll();

            // Assert
            Assert.True(playLists.Count > 1, "The number of play lists was not greater than 1");
        }
        public IEnumerable <PlaylistModelView> GetAll(string userId)
        {
            var list     = new List <PlaylistModelView>();
            var playlist = _playlistRepository.GetAll().Where(x => x.UserId == userId);

            playlist.ToList().ForEach(p =>
            {
                list.Add(GetPlaylistModel(p));
            });

            return(list);
        }
        public override async Task <bool> Execute(PerformContext context)
        {
            Log("Starting playlist processing");
            context.WriteLine("Starting playlist processing");
            var playlists = await _playlistRepository.GetAll()
                            // .Where(r => r.Id == Guid.Parse("49c8d76d-05a9-489f-991b-08d830faf155"))
                            .ToListAsync();

            foreach (var playlist in playlists)
            {
                await Execute(playlist.Id, context);
            }

            return(true);
        }
 public IEnumerable <Playlist> Get()
 {
     return(_repository.GetAll());
 }
Example #5
0
        public ActionResult Index()
        {
            var playlists = _repository.GetAll();

            return(View(playlists));
        }
Example #6
0
 public List <Playlist> GetAll()
 {
     return(_playlistRepository.GetAll());
 }
Example #7
0
 public IEnumerable <Playlist> GetAll()
 {
     return(_playlistRepository.GetAll().ToList());
 }