public void SetupContext() { FakeConfigSource = MockRepository.GenerateStub <IConfigSource>(); ConfigSettings settings = GetSettings(); FakeConfigSource.Stub(x => x.GetConfig("")).IgnoreArguments().Return(settings); Factory = new JobFactory(FakeConfigSource); }
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); }