private void addAnalysableToSimulationIfRequired(Simulation simulation)
 {
     if (simulation == null || !simulation.HasResults)
     {
         return;
     }
     if (simulation.Analyses.Count() != 0)
     {
         return;
     }
     _simulationAnalysisCreator.CreateAnalysisFor(simulation);
 }
Example #2
0
        public void Handle(SimulationResultsUpdatedEvent eventToHandle)
        {
            var simulation = eventToHandle.Simulation as Simulation;

            if (simulation == null || !simulation.HasResults)
            {
                return;
            }
            if (simulation.Analyses.Count() != 0)
            {
                return;
            }
            _simulationAnalysisCreator.CreateAnalysisFor(simulation);
        }