public GetMonthPostsFolder ( string parentSha ) : IList |
||
parentSha | string | |
리턴 | IList |
public void FirstYearFolderShouldHaveSubFolderOfMonthPosts() { var repository = new ArchiveRepository(); var firstYear = repository.GetYearFolder().FirstOrDefault(); Assert.IsNotNull(firstYear,"Could not load the first year folder from the repository"); var monthPostsFolder = repository.GetMonthPostsFolder(firstYear.Sha); Assert.IsTrue(monthPostsFolder.Count > 0); }
public void FilesShouldBeReturned() { var repository = new ArchiveRepository(); var firstYear = repository.GetYearFolder()[1]; Assert.IsNotNull(firstYear, "Could not load the first year folder from the repository"); var monthPostsFolder = repository.GetMonthPostsFolder(firstYear.Sha); var monthPosts = repository.GetMonthPosts(monthPostsFolder.First().Sha); Assert.IsNotNull(monthPosts); Assert.IsTrue(monthPosts.Count > 0); }