public void abstractEAC3ToOutputNamingServiceFactory_CreateNewEncodeTemplate1EAC3ToOutputNamingService_test() { //given AbstractEAC3ToOutputNamingServiceFactory factory = new AbstractEAC3ToOutputNamingServiceFactory(new AudioService()); //when AbstractEAC3ToOutputNamingService service = factory.CreateNewEncodeTemplate1EAC3ToOutputNamingService(); //then service.EnumEAC3ToNamingConventionType.Should().Be(EnumEAC3ToNamingConventionType.EncodeNamingConventionTemplate1); }
private AbstractEAC3ToOutputNamingService GetOutputNamingService() { AbstractEAC3ToOutputNamingServiceFactory factory = new AbstractEAC3ToOutputNamingServiceFactory(new AudioService()); AbstractEAC3ToOutputNamingService service = null; if (_eac3toConfiguration.IsExtractForRemux == false) return factory.CreateNewEncodeTemplate1EAC3ToOutputNamingService(); if (_eac3toConfiguration.IsExtractForRemux && _eac3toConfiguration.IfIsExtractForRemuxIsItForAMovie) return factory.CreateNewMovieRemuxTemplate1EAC3ToOutputNamingServiceService(); ; switch (Program.ApplicationSettings.EnumEAC3ToNamingConventionType) { case EnumEAC3ToNamingConventionType.RemuxNamingConventionTemplate1: service = factory.CreateNewRemuxTemplate1EAC3ToOutputNamingService(); break; case EnumEAC3ToNamingConventionType.RemuxNamingConventionTemplate2: service = factory.CreateNewRemuxTemplate2EAC3ToOutputNamingService(); break; case EnumEAC3ToNamingConventionType.RemuxNamingConventionTemplate3: service = factory.CreateNewRemuxTemplate3EAC3ToOutputNamingService(); break; default: throw new Exception("Invalid EnumEAC3ToNamingConventionType"); } return service; }