示例#1
0
        public void TestGetimagesRankedByVotesWithEmptyList()
        {
            var imagesList          = new List <Image>();
            var imagesRankedByVotes = imageManagement.GetImagesRankedByVotes(imagesList);

            Assert.IsEmpty(imagesRankedByVotes);
        }
示例#2
0
        public RankingModel(IImageDirectory imageDirectory)
        {
            _imageDirectory = imageDirectory;
            ImageManagement imageManagement = new ImageManagement();

            ImagesList = imageManagement.GetImagesRankedByVotes(_imageDirectory.Images);
        }