//This creates a functional fake profile with a fake DiscreteExercisePlan.
        public static FitnessProfile FakeFactory(string Email)
        {
            FitnessProfile fake         = new FitnessProfile(Email);
            var            discreteFake = new DiscreteExercisePlan(true);
            var            discreteList = new List <DiscreteExercisePlan>();

            discreteList.Add(discreteFake);
            fake.DiscreteExercisePlans = discreteList;
            return(fake);
        }
示例#2
0
        public static DiscreteExercisePlan Generate(DiscreteExercisePlanOptions options)
        {
            var plan = new DiscreteExercisePlan();

            List <ExerciseSet> exerciseSets = GenerateSets(options);

            plan.SetsOfExercise = exerciseSets;

            plan.Name    = options.Name;
            plan.Profile = options.Profile;

            return(plan);
        }