示例#1
0
        public void SetupContext()
        {
            FakeConfigSource = MockRepository.GenerateStub <IConfigSource>();
            ConfigSettings settings = GetSettings();

            FakeConfigSource.Stub(x => x.GetConfig("")).IgnoreArguments().Return(settings);
            Factory = new JobFactory(FakeConfigSource);
        }
示例#2
0
        private static void Main(string[] args)
        {
            var filesystem = new Filesystem();
            var reader = new FilesystemConfigReader(filesystem, new ConfigParser());

            var job = new JobFactory(reader).ParseArguments(args);

            var result = job.Run();
            Environment.Exit(result);
        }
示例#3
0
        private static void Main(string[] args)
        {
            var filesystem = new Filesystem();
            var reader     = new FilesystemConfigReader(filesystem, new ConfigParser());

            var job = new JobFactory(reader).ParseArguments(args);

            var result = job.Run();

            Environment.Exit(result);
        }
        public void SetupContext()
        {
            FakeConfigSource = MockRepository.GenerateStub<IConfigSource>();
            ConfigSettings settings = GetSettings();

            FakeConfigSource.Stub(x => x.GetConfig("")).IgnoreArguments().Return(settings);
            Factory = new JobFactory(FakeConfigSource);
        }