private static IConfigurationService NewConfigurationService(string configFile)
        {
            IConfigurationService service = new FileConfigurationService(
                new DefaultConfigurationFileLoader(),
                new DefaultConfigurationFileSaver(
                    new NetReflectorProjectSerializer()),
                new FileInfo(configFile));

            if (WatchConfigFile)
                service = new FileWatcherConfigurationService(service, new FileChangedWatcher(configFile));

            return new CachingConfigurationService(service);
        }
		public void Setup()
		{
			fileWatcher = new MockFileWatcher();
			IMock mockService = new DynamicMock(typeof (IConfigurationService));
			fileService = new FileWatcherConfigurationService((IConfigurationService) mockService.MockInstance, fileWatcher);
		}