Esempio n. 1
0
        public IModifyMp3Metadata GetMp3MetadataEditor(MP3MetadataReaderTypes.Mp3MetadataReaders selectedMp3MetadataEditor)
        {
            if (_mp3MetadataEditor == null)
            {
                switch (selectedMp3MetadataEditor)
                {
                case MP3MetadataReaderTypes.Mp3MetadataReaders.Taglib:
                    _mp3MetadataEditor = new TaglibMp3MetadataEditorWrapper();
                    break;
                }
            }

            return(_mp3MetadataEditor);
        }
Esempio n. 2
0
        public void MP3MetadataReader_Returned_Via_Factory_Should_Be_Instance_Of_IMP3metadataReader()
        {
            IModifyMp3Metadata modifyMp3Metadata = Mp3MetadataEditorFactory.Instance.GetMp3MetadataEditor(MP3MetadataReaderTypes.Mp3MetadataReaders.Taglib);

            Assert.IsInstanceOfType(modifyMp3Metadata, typeof(IModifyMp3Metadata));
        }
Esempio n. 3
0
        public void MP3MetadataReader_Returned_Via_Factory_Should_Not_Be_Null()
        {
            IModifyMp3Metadata modifyMp3Metadata = Mp3MetadataEditorFactory.Instance.GetMp3MetadataEditor(MP3MetadataReaderTypes.Mp3MetadataReaders.Taglib);

            Assert.IsNotNull(modifyMp3Metadata);
        }