public IFFmpegConfig SetupConfig() { api = new Mock <IWindowsApiService>(MockBehavior.Strict); api.Setup(x => x.AttachConsole(It.IsAny <uint>())).Returns(false); var FileSystem = new FakeFileSystemService(); return(new FFmpegConfig(api.Object, FileSystem)); }
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)); }
/// <summary> /// Creates and initializes the MediaMuxer class for testing. /// </summary> protected IMediaMuxer SetupMuxer() { FakeFileSystemService FileSystemStub = new FakeFileSystemService(); return(new MediaMuxer(factory, FileSystemStub)); }