private void renameIndividualSimulation(IndividualSimulation individualSimulation, string newName) { var individualSimulationDataRepository = individualSimulation.DataRepository; if (individualSimulationDataRepository != null) { _dataRepositoryNamer.Rename(individualSimulationDataRepository, newName); } renameSimulation(individualSimulation, newName); }
public void should_use_the_data_repository_renamer_to_update_data_repository_name() { A.CallTo(() => _dataRepositoryNamer.Rename(_dataRepository, _newName)).MustHaveHappened(); }