public IxHatResultElementFactory CreatexHatResultElementFactory()
        {
            IxHatResultElementFactory factory = null;

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

            return(factory);
        }
Example #2
0
 public Interfaces.Results.SurgeonOperatingRoomDayAssignments.IxHat GetElementsAt(
     IxHatResultElementFactory xHatResultElementFactory,
     IxHatFactory xHatFactory,
     Isrt srt)
 {
     return(xHatFactory.Create(
                srt.Value
                .Select(
                    i => xHatResultElementFactory.Create(
                        i.sIndexElement,
                        i.rIndexElement,
                        i.tIndexElement,
                        this.GetElementAt(
                            i.sIndexElement,
                            i.rIndexElement,
                            i.tIndexElement)))
                .ToImmutableList()));
 }