private void addInfoToLogForSuccessfulImport(PopulationSimulationImport import) { if (import.Status.Is(NotificationType.Error)) { return; } var populationSimulation = import.PopulationSimulation; import.AddInfo(PKSimConstants.Information.PopulationSimulationSuccessfullyImported(populationSimulation.Name, populationSimulation.NumberOfItems)); }
private void addPopulationBuildingBlockToSimulation(PopulationSimulationImport populationSimulationImport, Population population) { _simulationBuildingBlockUpdater.UpdateUsedBuildingBlockInSimulationFromTemplate(populationSimulationImport.PopulationSimulation, population, PKSimBuildingBlockType.SimulationSubject); }
private PopulationSimulationImport addPopulationToPopulationSimulation(PopulationSimulationImport populationSimulationImport, Population population) { addPopulationBuildingBlockToSimulation(populationSimulationImport, population); addInfoToLogForSuccessfulImport(populationSimulationImport); return(populationSimulationImport); }
protected override void Because() { _simulationImport = sut.ImportFromPopulationSize(_pkmlFile, _size); }
protected override void Because() { _simulationImport = sut.ImportFromBuildingBlock(_pkmlFile, _population); }
public void StartImport() { _populationSimulationImport = importSimulation(); _importPopulationSimulationDTO.Messages = _populationSimulationImport.Log; _importPopulationSimulationDTO.Status = _populationSimulationImport.Status; }