Beispiel #1
0
        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));
        }
Beispiel #2
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));
        }
Beispiel #3
0
        /// <summary>
        /// Creates and initializes the MediaMuxer class for testing.
        /// </summary>
        protected IMediaMuxer SetupMuxer()
        {
            FakeFileSystemService FileSystemStub = new FakeFileSystemService();

            return(new MediaMuxer(factory, FileSystemStub));
        }