public void ShouldExposeTheExistenceOfWorkout() { var circuit = new Circuit("name", new List<string>(), new List<string>(), new List<string>()); Assert.IsFalse(circuit.HasWarmup); }
private Duration ActiveTime(Circuit circuit) { return warmupPhase.ActiveTime(circuit.Warmup) + workoutPhase.ActiveTime(circuit.Workout) + stretchingPhase.ActiveTime(circuit.Stretching); }
public void LoadCircuit(Circuit circuit) { scheduler.Circuit = circuit; listener.CircuitChangedTo(circuit.Name); UpdateLevel(); }
public Duration TotalDuration(Circuit circuit) { return ActiveTime(circuit) + PassiveTime(circuit); }
public Effort Effort(Circuit circuit) { return ActiveTime(circuit) / TotalDuration(circuit); }
public Scheduler(Circuit circuit, Duration duration, Effort effort) { candidateLevels = new List<Level>(); BuildCandidates(); schedule = candidateLevels[0]; this.circuit = circuit; this.duration = duration; this.effort = effort; }
public Session(Circuit circuit, Level level) { this.circuit = circuit; this.level = level; }