BatchGuy.Unit.Tests.Services.Eac3to.EncodeTemplate1EAC3ToOutputNamingServiceTests.encodeTemplate1EAC3ToOutputNamingService_can_set_audio_name_when_not_extract_for_remux_test C# (CSharp) Метод

encodeTemplate1EAC3ToOutputNamingService_can_set_audio_name_when_not_extract_for_remux_test() приватный Метод

        public void encodeTemplate1EAC3ToOutputNamingService_can_set_audio_name_when_not_extract_for_remux_test()
        {
            //given not extract for remux
            EAC3ToConfiguration config = new EAC3ToConfiguration() { IsExtractForRemux = false };
            string filesOutputPath = "c:\\bluray";
            string paddedEpisodeNumber = "01";
            string episodeName = string.Empty;
            BluRayTitleAudio audio = new BluRayTitleAudio() { Id = "13:", AudioType = EnumAudioType.DTSMA, Language = "english" };
            //when i get the audio name
            IAudioService audioService = new AudioService();
            AbstractEAC3ToOutputNamingService service = new EncodeTemplate1EAC3ToOutputNamingService(audioService);
            string audioName = service.GetAudioName(config, audio, filesOutputPath, paddedEpisodeNumber, episodeName);
            //then audio name should be hard coded for workflow
            audioName.Should().Be("\"c:\\bluray\\english01-13.dtsma\"");
        }