public void TestGetimagesRankedByVotesWithEmptyList() { var imagesList = new List <Image>(); var imagesRankedByVotes = imageManagement.GetImagesRankedByVotes(imagesList); Assert.IsEmpty(imagesRankedByVotes); }
public RankingModel(IImageDirectory imageDirectory) { _imageDirectory = imageDirectory; ImageManagement imageManagement = new ImageManagement(); ImagesList = imageManagement.GetImagesRankedByVotes(_imageDirectory.Images); }