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())); }
public IWardNumberAssignedActiveDaysFactory CreateWardNumberAssignedActiveDaysFactory() { IWardNumberAssignedActiveDaysFactory factory = null; try { factory = new WardNumberAssignedActiveDaysFactory(); } catch (Exception exception) { this.Log.Error( exception.Message, exception); } return(factory); }