/// <summary>
        /// Creates and initializes the MediaMuxer class for testing.
        /// </summary>
        protected IMediaMuxer SetupMuxer()
        {
            factory = new FakeProcessWorkerFactory();
            FakeFileSystemService FileSystemStub = new FakeFileSystemService();

            return(new MediaMuxer(factory, FileSystemStub, new MediaInfoReader(factory)));
        }
Exemple #2
0
        public IProcessWorker SetupManager()
        {
            config = new Mock <IMediaConfig>();
            var factory    = new FakeProcessFactory();
            var fileSystem = new FakeFileSystemService();

            return(new ProcessWorker(config.Object, factory, fileSystem));
        }
        public IMediaConfig SetupConfig()
        {
            api = new Mock <IWindowsApiService>(MockBehavior.Strict);
            api.Setup(x => x.AttachConsole(It.IsAny <uint>())).Returns(false);
            var FileSystem = new FakeFileSystemService();

            return(new MediaConfig(api.Object, FileSystem));
        }