public ISurgeonScenarioNumberPatientsResultElementCalculation Create()
        {
            ISurgeonScenarioNumberPatientsResultElementCalculation calculation = null;

            try
            {
                calculation = new SurgeonScenarioNumberPatientsResultElementCalculation();
            }
            catch (Exception exception)
            {
                this.Log.Error("Exception message: " + exception.Message + " and stacktrace " + exception.StackTrace);
            }

            return(calculation);
        }
        public ISurgeonScenarioNumberPatientsResultElementCalculation Create()
        {
            ISurgeonScenarioNumberPatientsResultElementCalculation calculation = null;

            try
            {
                calculation = new SurgeonScenarioNumberPatientsResultElementCalculation();
            }
            catch (Exception exception)
            {
                this.Log.Error(
                    exception.Message,
                    exception);
            }

            return(calculation);
        }
 public ISurgeonScenarioNumberPatients Calculate(
     ISurgeonScenarioNumberPatientsResultElementFactory surgeonScenarioNumberPatientsResultElementFactory,
     ISurgeonScenarioNumberPatientsFactory surgeonScenarioNumberPatientsFactory,
     ISurgeonScenarioNumberPatientsResultElementCalculation surgeonScenarioNumberPatientsResultElementCalculation,
     Irt rt,
     IsΛ sΛ,
     In n,
     Ix x)
 {
     return(surgeonScenarioNumberPatientsFactory.Create(
                sΛ.Value
                .Select(w => surgeonScenarioNumberPatientsResultElementCalculation.Calculate(
                            surgeonScenarioNumberPatientsResultElementFactory,
                            w.sIndexElement,
                            w.ΛIndexElement,
                            rt,
                            n,
                            x))
                .ToImmutableList()));
 }