Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
 private void addPopulationBuildingBlockToSimulation(PopulationSimulationImport populationSimulationImport, Population population)
 {
     _simulationBuildingBlockUpdater.UpdateUsedBuildingBlockInSimulationFromTemplate(populationSimulationImport.PopulationSimulation, population, PKSimBuildingBlockType.SimulationSubject);
 }
Ejemplo n.º 3
0
 private PopulationSimulationImport addPopulationToPopulationSimulation(PopulationSimulationImport populationSimulationImport, Population population)
 {
     addPopulationBuildingBlockToSimulation(populationSimulationImport, population);
     addInfoToLogForSuccessfulImport(populationSimulationImport);
     return(populationSimulationImport);
 }
Ejemplo n.º 4
0
 protected override void Because()
 {
     _simulationImport = sut.ImportFromPopulationSize(_pkmlFile, _size);
 }
Ejemplo n.º 5
0
 protected override void Because()
 {
     _simulationImport = sut.ImportFromBuildingBlock(_pkmlFile, _population);
 }
Ejemplo n.º 6
0
 public void StartImport()
 {
     _populationSimulationImport             = importSimulation();
     _importPopulationSimulationDTO.Messages = _populationSimulationImport.Log;
     _importPopulationSimulationDTO.Status   = _populationSimulationImport.Status;
 }