public void GetFolders_ShouldGetFolders() { ILogger logger = new InMemoryLogger(); var jsonFolderRepository = new JsonFolderRepository(sampleJsonFile, logger); int numberOfFolders = 10; addFoldersToRepository(jsonFolderRepository, numberOfFolders); Assert.Equal(numberOfFolders, jsonFolderRepository.GetFolders().Count()); }
public void GetById_ShouldThrowException() { ILogger logger = new InMemoryLogger(); var jsonFolderRepository = new JsonFolderRepository(sampleJsonFile, logger); Assert.Throws(typeof(NotImplementedException), () => jsonFolderRepository.GetById(1)); }