コード例 #1
0
 public AviSynthWriteService(IAviSynthFileService fileService, IAviSynthValidationService validationService, AviSynthTemplateScript avsScript, AviSynthBatchSettings avsBatchSettings)
 {
     _fileService = fileService;
     _validationService = validationService;
     _avsScript = avsScript;
     _avsBatchSettings = avsBatchSettings;
 }
コード例 #2
0
ファイル: FileServiceTests.cs プロジェクト: yaboy58/BatchGuy
        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");
        }
コード例 #3
0
 public AviSynthFileService(AviSynthBatchSettings avsBatchSettings, AviSynthTemplateScript avsTemplateScript)
 {
     _avsBatchSettings = avsBatchSettings;
     _avsTemplateScript = avsTemplateScript;
     _avsFiles = new List<AviSynthFile>();
 }