private WhiskWorkSynchronizationAgent CreateWhiskWorkSynchronizationAgent() { IWhiskWorkRepository whiskWorkRepository = _whiskWorkRepository; if (_isDryRun) { whiskWorkRepository = new ReadOnlyWhiskWorkRepository(whiskWorkRepository); } return(new WhiskWorkSynchronizationAgent(whiskWorkRepository, MapFromWhiskWork, WhiskWorkBeginStep)); }
private WhiskWorkSynchronizationAgent CreateWhiskWorkSynchronizationAgent() { IWhiskWorkRepository whiskWorkRepository = _whiskWorkRepository; if (_isDryRun) { whiskWorkRepository = new ReadOnlyWhiskWorkRepository(whiskWorkRepository); } return new WhiskWorkSynchronizationAgent(whiskWorkRepository, MapFromWhiskWork, WhiskWorkBeginStep); }