public ISurgicalSpecialtyNumberAssignedWeekdaysResultElement Calculate( ISurgicalSpecialtyNumberAssignedWeekdaysResultElementFactory surgicalSpecialtyNumberAssignedWeekdaysResultElementFactory, IΔParameterElement ΔParameterElement, Ix x) { return(surgicalSpecialtyNumberAssignedWeekdaysResultElementFactory.Create( ΔParameterElement.jIndexElement, ΔParameterElement.Value.SelectMany(a => x.Value.Where(i => i.sIndexElement == a && i.Value).Select(i => i.tIndexElement.Value.ToDateTimeOffset(TimeSpan.Zero).UtcDateTime.DayOfWeek)).Distinct().Count())); }
public ISurgicalSpecialtyNumberAssignedWeekdays Calculate( ISurgicalSpecialtyNumberAssignedWeekdaysResultElementFactory surgicalSpecialtyNumberAssignedWeekdaysResultElementFactory, ISurgicalSpecialtyNumberAssignedWeekdaysFactory surgicalSpecialtyNumberAssignedWeekdaysFactory, ISurgicalSpecialtyNumberAssignedWeekdaysResultElementCalculation surgicalSpecialtyNumberAssignedWeekdaysResultElementCalculation, IΔ Δ, Ix x) { return(surgicalSpecialtyNumberAssignedWeekdaysFactory.Create( Δ.Value .Select(i => surgicalSpecialtyNumberAssignedWeekdaysResultElementCalculation.Calculate( surgicalSpecialtyNumberAssignedWeekdaysResultElementFactory, i, x)) .ToImmutableList())); }
public ISurgicalSpecialtyNumberAssignedWeekdaysResultElementFactory CreateSurgicalSpecialtyNumberAssignedWeekdaysResultElementFactory() { ISurgicalSpecialtyNumberAssignedWeekdaysResultElementFactory factory = null; try { factory = new SurgicalSpecialtyNumberAssignedWeekdaysResultElementFactory(); } catch (Exception exception) { this.Log.Error("Exception message: " + exception.Message + " and stacktrace " + exception.StackTrace); } return(factory); }
public ISurgicalSpecialtyNumberAssignedWeekdaysResultElementFactory CreateSurgicalSpecialtyNumberAssignedWeekdaysResultElementFactory() { ISurgicalSpecialtyNumberAssignedWeekdaysResultElementFactory factory = null; try { factory = new SurgicalSpecialtyNumberAssignedWeekdaysResultElementFactory(); } catch (Exception exception) { this.Log.Error( exception.Message, exception); } return(factory); }