示例#1
0
        public IProcessWorker SetupManager()
        {
            _config = new Mock <IMediaConfig>();
            var factory = new FakeProcessFactory();

            return(new ProcessWorker(_config.Object, factory, null));
        }
        public IProcessWorker SetupManager()
        {
            _config = new Mock <IMediaConfig>();
            var factory    = new FakeProcessFactory();
            var fileSystem = Mock.Of <FakeFileSystemService>(x =>
                                                             x.Exists(It.IsAny <string>()) == true && x.Exists(MissingFileName) == false);

            return(new ProcessWorker(_config.Object, factory, null));
        }
        protected IProcessWorkerEncoder SetupManager()
        {
            _config = new Mock <FakeMediaConfig>()
            {
                CallBase = true
            };
            var parserFactory = new FileInfoParserFactory();
            var factory       = new FakeProcessFactory();
            var fileSystem    = Mock.Of <FakeFileSystemService>(x =>
                                                                x.Exists(It.IsAny <string>()) == true && x.Exists(MissingFileName) == false);

            return(new ProcessWorkerEncoder(_config.Object, factory, fileSystem, parserFactory, null));
        }