Beispiel #1
0
        public IProcessManager SetupManager()
        {
            config = new Mock <IFFmpegConfig>();
            var parser     = new FFmpegParser();
            var factory    = new FakeProcessFactory();
            var fileSystem = new FakeFileSystemService();

            return(new ProcessManager(config.Object, parser, factory, fileSystem));
        }
        public IProcessManager SetupManager()
        {
            config = new Mock <IFFmpegConfig>();
            var parser     = new FFmpegParser();
            var factory    = new FakeProcessFactory();
            var fileSystem = Mock.Of <FakeFileSystemService>(x =>
                                                             x.Exists(It.IsAny <string>()) == true && x.Exists(MissingFileName) == false);

            return(new ProcessManager(config.Object, parser, factory, fileSystem));
        }
Beispiel #3
0
        protected IProcessManagerAvs SetupManager()
        {
            config = new Mock <IFFmpegConfig>();
            config.Setup(x => x.Avs2yuvPath).Returns(AppAvs2yuv);
            var parser     = new FFmpegParser();
            var factory    = new FakeProcessFactory();
            var fileSystem = Mock.Of <FakeFileSystemService>(x =>
                                                             x.Exists(It.IsAny <string>()) == true && x.Exists(MissingFileName) == false);

            return(new ProcessManagerAvs(config.Object, parser, factory, fileSystem));
        }