Example #1
0
        public void DoWork()
        {
            IB b;

            if (hourHandler.GetHour() < 12)
            {
                b = bFactory.Create(TimeOfTheDay.Morning);
            }
            else
            {
                b = bFactory.Create(TimeOfTheDay.Evening);
            }

            b.Run();
        }
Example #2
0
 public Interfaces.Results.SurgeonNumberAssignedTimeBlocks.IB GetElementsAt(
     IBResultElementFactory BResultElementFactory,
     IBFactory BFactory,
     Is s)
 {
     return(BFactory.Create(
                s.Value
                .Select(
                    i => BResultElementFactory.Create(
                        i,
                        this.GetElementAt(
                            i)))
                .ToImmutableList()));
 }
Example #3
0
 public HM.HM1B.A.E.O.Interfaces.Results.SurgicalSpecialtyNumberAssignedTimeBlocks.IB Calculate(
     IBResultElementCalculationFactory BResultElementCalculationFactory,
     IBResultElementFactory BResultElementFactory,
     IBFactory BFactory,
     IΔ Δ,
     HM.HM1B.A.E.O.Interfaces.Results.SurgeonNumberAssignedTimeBlocks.IB B)
 {
     return(BFactory.Create(
                Δ.Value
                .Select(
                    i => BResultElementCalculationFactory.Create().Calculate(
                        BResultElementFactory,
                        i,
                        B))
                .ToImmutableList()));
 }