Наследование: BatchGuy.App.Eac3To.Abstracts.AbstractEAC3ToOutputNamingService
 public void remuxTemplate2EAC3ToOutputNamingService_can_set_audio_name_test()
 {
     //given not extract for remux
     EAC3ToConfiguration config = new EAC3ToConfiguration()
     {
         IsExtractForRemux = true,
         RemuxFileNameTemplate = new EAC3ToRemuxFileNameTemplate()
         {
             AudioType = "FLAC 5.1",
             SeriesName = "BatchGuy",
             SeasonNumber = "2",
             SeasonYear = "1978",
             Tag = "Guy",
             VideoResolution = "1080p"
         }
     };
     string filesOutputPath = "c:\\bluray";
     string paddedEpisodeNumber = "01";
     string episodeName = string.Empty;
     //when i get the audio name
     IAudioService audioService = new AudioService();
     AbstractEAC3ToOutputNamingService service = new RemuxTemplate2EAC3ToOutputNamingService(audioService);
     BluRayTitleAudio audio = new BluRayTitleAudio() { Id = "5:", AudioType = EnumAudioType.DTSEXPRESS, Language = "english" };
     string audioName = service.GetAudioName(config, audio, filesOutputPath, paddedEpisodeNumber, episodeName);
     //then audio name should be based on the remux template
     audioName.Should().Be("\"c:\\bluray\\BatchGuy, S02E01 (1978) english01-5.dts\"");
 }
 public void remuxTemplate2EAC3ToOutputNamingService_can_set_chapter_name_no_season_year_test()
 {
     //given not extract for remux
     EAC3ToConfiguration config = new EAC3ToConfiguration()
     {
         IsExtractForRemux = true,
         RemuxFileNameTemplate = new EAC3ToRemuxFileNameTemplate()
         {
             AudioType = "FLAC 5.1",
             SeriesName = "BatchGuy",
             SeasonNumber = "2",
             Tag = "Guy",
             VideoResolution = "1080p",
             Medium = "Remux"
         }
     };
     string filesOutputPath = "c:\\bluray";
     string paddedEpisodeNumber = "01";
     string episodeName = string.Empty;
     //when i get the chapter name
     IAudioService audioService = new AudioService();
     AbstractEAC3ToOutputNamingService service = new RemuxTemplate2EAC3ToOutputNamingService(audioService);
     string chapterName = service.GetChapterName(config, filesOutputPath, paddedEpisodeNumber, episodeName);
     //then chapter name should be based on the remux template
     chapterName.Should().Be("\"c:\\bluray\\BatchGuy, S02E01 chapters.txt\"");
 }
 public void remuxTemplate2EAC3ToOutputNamingService_can_set_subtitle_name_test()
 {
     //given not extract for remux
     EAC3ToConfiguration config = new EAC3ToConfiguration()
     {
         IsExtractForRemux = true,
         RemuxFileNameTemplate = new EAC3ToRemuxFileNameTemplate()
         {
             AudioType = "FLAC 5.1",
             SeriesName = "BatchGuy",
             SeasonNumber = "2",
             SeasonYear = "1978",
             Tag = "Guy",
             VideoResolution = "1080p",
             Medium = "Remux",
             VideoFormat = "H.264"
         }
     };
     string filesOutputPath = "c:\\bluray";
     string paddedEpisodeNumber = "01";
     string episodeName = string.Empty;
     //when i get the subtitle name
     IAudioService audioService = new AudioService();
     AbstractEAC3ToOutputNamingService service = new RemuxTemplate2EAC3ToOutputNamingService(audioService);
     BluRayTitleSubtitle subtitle = new BluRayTitleSubtitle() { Id = "11:", Language = "english" };
     string subtitleName = service.GetSubtitleName(config, subtitle, filesOutputPath, paddedEpisodeNumber, episodeName);
     //then subtitle name should be based on the remux template
     subtitleName.Should().Be("\"c:\\bluray\\BatchGuy, S02E01 (1978) english01-11.sup\"");
 }
 public void remuxTemplate2EAC3ToOutputNamingService_can_set_log_name_test()
 {
     //given not extract for remux
     EAC3ToConfiguration config = new EAC3ToConfiguration()
     {
         IsExtractForRemux = true,
         RemuxFileNameTemplate = new EAC3ToRemuxFileNameTemplate()
         {
             SeriesName = "BatchGuy",
             SeasonNumber = "2",
         }
     };
     string filesOutputPath = "c:\\bluray";
     string paddedEpisodeNumber = "01";
     string episodeName = "Episode 3";
     //when i get the subtitle name
     IAudioService audioService = new AudioService();
     AbstractEAC3ToOutputNamingService service = new RemuxTemplate2EAC3ToOutputNamingService(audioService);
     string logName = service.GetLogName(config, filesOutputPath, paddedEpisodeNumber, episodeName);
     //then subtitle name should be based on the remux template
     logName.Should().Be(" -log=\"c:\\bluray\\BatchGuy, S02E01 log.log\"");
 }