コード例 #1
0
 public IDayBedRequirementVariances Calculate(
     IDayBedRequirementVariancesResultElementFactory dayBedRequirementVariancesResultElementFactory,
     IDayBedRequirementVariancesFactory dayBedRequirementVariancesFactory,
     IDayBedRequirementVariancesResultElementCalculation dayBedRequirementVariancesResultElementCalculation,
     Id d,
     IVariance Variance)
 {
     return(dayBedRequirementVariancesFactory.Create(
                d.Value
                .Select(y => dayBedRequirementVariancesResultElementCalculation.Calculate(
                            dayBedRequirementVariancesResultElementFactory,
                            y,
                            Variance))
                .ToImmutableList()));
 }
        public IDayBedRequirementVariancesResultElementCalculation Create()
        {
            IDayBedRequirementVariancesResultElementCalculation calculation = null;

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

            return(calculation);
        }