public IScenarioNumberPatients Calculate( IScenarioNumberPatientsResultElementFactory scenarioNumberPatientsResultElementFactory, IScenarioNumberPatientsFactory scenarioNumberPatientsFactory, IScenarioNumberPatientsResultElementCalculation scenarioNumberPatientsResultElementCalculation, IΛ Λ, ISurgeonScenarioNumberPatients surgeonScenarioNumberPatients) { return(scenarioNumberPatientsFactory.Create( Λ.Value .Select(i => scenarioNumberPatientsResultElementCalculation.Calculate( scenarioNumberPatientsResultElementFactory, i, surgeonScenarioNumberPatients)) .ToImmutableList())); }
public IScenarioNumberPatientsResultElementCalculation Create() { IScenarioNumberPatientsResultElementCalculation calculation = null; try { calculation = new ScenarioNumberPatientsResultElementCalculation(); } catch (Exception exception) { this.Log.Error("Exception message: " + exception.Message + " and stacktrace " + exception.StackTrace); } return(calculation); }
public IScenarioNumberPatientsResultElementCalculation Create() { IScenarioNumberPatientsResultElementCalculation calculation = null; try { calculation = new ScenarioNumberPatientsResultElementCalculation(); } catch (Exception exception) { this.Log.Error( exception.Message, exception); } return(calculation); }