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)); }
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)); }