Esempio n. 1
0
 public ISurgeonGroupNumberAssignedOperatingRooms Calculate(
     ISurgeonGroupNumberAssignedOperatingRoomsResultElementFactory surgeonGroupNumberAssignedOperatingRoomsResultElementFactory,
     ISurgeonGroupNumberAssignedOperatingRoomsFactory surgeonGroupNumberAssignedOperatingRoomsFactory,
     ISurgeonGroupNumberAssignedOperatingRoomsResultElementCalculation surgeonGroupNumberAssignedOperatingRoomsResultElementCalculation,
     Is s,
     ITPz z)
 {
     return(surgeonGroupNumberAssignedOperatingRoomsFactory.Create(
                s.Value
                .Select(w => surgeonGroupNumberAssignedOperatingRoomsResultElementCalculation.Calculate(
                            surgeonGroupNumberAssignedOperatingRoomsResultElementFactory,
                            w,
                            z))
                .ToImmutableList()));
 }
        public ISurgeonGroupNumberAssignedOperatingRoomsResultElementCalculation Create()
        {
            ISurgeonGroupNumberAssignedOperatingRoomsResultElementCalculation calculation = null;

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

            return(calculation);
        }