コード例 #1
0
 public IWardNumberAssignedActiveDays Calculate(
     IWardNumberAssignedActiveDaysResultElementFactory wardNumberAssignedActiveDaysResultElementFactory,
     IWardNumberAssignedActiveDaysFactory wardNumberAssignedActiveDaysFactory,
     IWardNumberAssignedActiveDaysResultElementCalculation wardNumberAssignedActiveDaysResultElementCalculation,
     IW W,
     ITPz z)
 {
     return(wardNumberAssignedActiveDaysFactory.Create(
                W.Value
                .Select(i => wardNumberAssignedActiveDaysResultElementCalculation.Calculate(
                            wardNumberAssignedActiveDaysResultElementFactory,
                            i,
                            z))
                .ToImmutableList()));
 }
コード例 #2
0
        public IWardNumberAssignedActiveDaysFactory CreateWardNumberAssignedActiveDaysFactory()
        {
            IWardNumberAssignedActiveDaysFactory factory = null;

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

            return(factory);
        }