public void DoWork() { IB b; if (hourHandler.GetHour() < 12) { b = bFactory.Create(TimeOfTheDay.Morning); } else { b = bFactory.Create(TimeOfTheDay.Evening); } b.Run(); }
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())); }
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())); }