Exemple #1
0
        /// <summary>
        /// Creates and initializes the MediaMuxer class for testing.
        /// </summary>
        protected IMediaMuxer SetupMuxer()
        {
            _factory = new FakeProcessWorkerFactory();
            var fileSystemStub = new FakeFileSystemService();

            return(new MediaMuxer(_factory, fileSystemStub, new FakeMediaInfoReader()));
        }
        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));
        }