public AviSynthWriteService(IAviSynthFileService fileService, IAviSynthValidationService validationService, AviSynthTemplateScript avsScript, AviSynthBatchSettings avsBatchSettings) { _fileService = fileService; _validationService = validationService; _avsScript = avsScript; _avsBatchSettings = avsBatchSettings; }
public void avsfile_has_correct_name_test() { AviSynthBatchSettings avsBatchSettings; IAviSynthFileService fileService; AviSynthTemplateScript avsTemplateScript; //given correct settings avsBatchSettings = new AviSynthBatchSettings() { AviSynthFilesOutputDirectoryPath = "C:\\Temp", NamingConvention = "encode", NumberOfFiles = 9 }; avsTemplateScript = new AviSynthTemplateScript() { Script = string.Empty}; //when I create the avs file batch fileService = new AviSynthFileService(avsBatchSettings, avsTemplateScript); List<AviSynthFile> avsFiles = fileService.CreateAVSFileList(); //then error list contains error avsFiles[0].FileNameOnly.Should().Be("encode01.avs"); }
public AviSynthFileService(AviSynthBatchSettings avsBatchSettings, AviSynthTemplateScript avsTemplateScript) { _avsBatchSettings = avsBatchSettings; _avsTemplateScript = avsTemplateScript; _avsFiles = new List<AviSynthFile>(); }