public void Daily_Empty_ReturnsSongsRatedOnThatDay()
        {
            _songs = new List <Song>
            {
                new Song
                {
                    Ratings = new List <Rating>
                    {
                        new Rating {
                            RatedOn = DateTime.Today
                        }
                    }
                },
                new Song
                {
                    Ratings = new List <Rating>
                    {
                        new Rating {
                            RatedOn = new DateTime(2000, 1, 1)
                        }
                    }
                }
            };

            _query = new TopRatedSongsQuery(_songs, 3);

            var result = _query.Daily();

            const int expected = 1;

            Assert.AreEqual(expected, result.Count);
        }
        public SongRatings SongRatings(int takeAmount)
        {
            var songs = _songRepository.Get();

            var query = new TopRatedSongsQuery(songs, takeAmount);

            return(new SongRatings
            {
                TopAllTimeRatedSongs = query.AllTime(),
                TopDailyRatedSongs = query.Daily(),
                TopWeeklyRatedSongs = query.Weekly(),
                TopMonthlyRatedSongs = query.Monthly()
            });
        }