Exemplo n.º 1
0
        public IMusicCollection ReadCollection(string sourceDirectoryPath)
        {
            var sourceFilePath = sourceDirectoryPath;
            var collection     = new MusicCollection(sourceFilePath);

            collection.ScanItemsToCollection();
            return(collection);
        }
        public void TestCreateNewCollection()
        {
            var setting = FormatterSettingsTests.GetDefaultSettings();

            IMusicCollection collection = new MusicCollection(setting.SourceDirectoryPath);

            collection.ScanItemsToCollection();

            var artists = collection.Artists;

            Assert.AreEqual(3, artists.Count());
        }