Example #1
0
 public void ShouldExposeTheExistenceOfWorkout()
 {
     var circuit = new Circuit("name", new List<string>(), new List<string>(), new List<string>());
     Assert.IsFalse(circuit.HasWarmup);
 }
Example #2
0
 private Duration ActiveTime(Circuit circuit)
 {
     return warmupPhase.ActiveTime(circuit.Warmup)
           + workoutPhase.ActiveTime(circuit.Workout)
           + stretchingPhase.ActiveTime(circuit.Stretching);
 }
Example #3
0
 public void LoadCircuit(Circuit circuit)
 {
     scheduler.Circuit = circuit;
     listener.CircuitChangedTo(circuit.Name);
     UpdateLevel();
 }
Example #4
0
 public Duration TotalDuration(Circuit circuit)
 {
     return ActiveTime(circuit) + PassiveTime(circuit);
 }
Example #5
0
 public Effort Effort(Circuit circuit)
 {
     return ActiveTime(circuit) / TotalDuration(circuit);
 }
Example #6
0
 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;
 }
Example #7
0
 public Session(Circuit circuit, Level level)
 {
     this.circuit = circuit;
     this.level = level;
 }
Example #8
0
 public Session(Circuit circuit, Level level)
 {
     this.circuit = circuit;
     this.level   = level;
 }