public void TestThatNumberOfWorkoutExercisesOnTheWorkoutIs0()
        {
            var alex         = GymMembers.Single(_alexFilter, _workoutsLoader);
            var firstWorkout = alex.Workouts.Single();

            Assert.That(firstWorkout.WorkoutExercises.Count, Is.EqualTo(0));
        }
        public void TestThatNumberOfWorkoutExercisesOnTheLastWorkoutIs0()
        {
            var alex        = GymMembers.Single(_alexFilter);
            var lastWorkout = alex.Workouts.OrderBy(w => w.Date).Last();

            Assert.That(lastWorkout.WorkoutExercises.Count, Is.EqualTo(0));
        }
Beispiel #3
0
        public void TestThatNumberOfWorkoutExercisesOnTheFirstWorkoutIs3()
        {
            var alex         = GymMembers.Single(_alexFilter, _workoutsLoader);
            var firstWorkout = alex.Workouts.OrderBy(w => w.Date).First();

            Assert.That(firstWorkout.WorkoutExercises.Count, Is.EqualTo(3));
        }
        public void TestThatNumberOfWorkoutsOnAlexIs1()
        {
            var alex = GymMembers.Single(_alexFilter, _workoutsLoader);

            Assert.That(alex.Workouts.Count, Is.EqualTo(1));
        }