Esempio n. 1
0
        public void TestCoachRunCircuit()
        {
            Circuit circuit = PrepareCircuit();

            var mockTrainee = new FakeTrainee();
            Session session = new Session(circuit, new Level(2));

            session.Run(mockTrainee);

            mockTrainee.VerifyCalls(
                "warmup",
                "m1", "m2",
                "workout",
                "m3", "m4",
                "break", "m3", "m4",
                "stretching",
                "m5", "m6",
                "well done!");
        }
Esempio n. 2
0
 public virtual void OnGo()
 {
     var session = new Session(scheduler.Circuit, scheduler.Schedule);
     session.Run(new TraineeAdapter(listener, scheduler.Schedule));
 }