Beispiel #1
0
        public IProcessWorker SetupManager()
        {
            config = new Mock <IMediaConfig>();
            var factory    = new FakeProcessFactory();
            var fileSystem = new FakeFileSystemService();

            return(new ProcessWorker(config.Object, factory, fileSystem));
        }
Beispiel #2
0
        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, fileSystem));
        }
        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));
        }