예제 #1
0
        private ComponentFile CreateVideoComponentFile(string filename)
        {
            var file = new ComponentFile(null, _parentFolder.Combine(filename),
                                         new FileType[] { new VideoFileType(null, null, null), new UnknownFileType(null, null) },
                                         new ComponentRole[] { }, new XmlFileSerializer(null), null, null, null);

            var annotationPath = Path.Combine(_parentFolder.Path,
                                              AnnotationFileHelper.ComputeEafFileNameFromOralAnnotationFile(filename));

            AnnotationFileHelperTests.CreateTestEaf(annotationPath);
            var annotationFile = new AnnotationComponentFile(null, annotationPath,
                                                             file, _fileTypes, null);

            file.SetAnnotationFile(annotationFile);
            return(file);
        }