Exemplo n.º 1
0
        private void DummyData()
        {
            plans = new List <PlanModel> ();
            for (int i = 0; i < 10; i++)
            {
                var mileyPlan = new PlanModel()
                {
                    Name        = "Twerk It Like Miley",
                    Difficulty  = "EASY",
                    Frequency   = "1 - 3",
                    Duration    = 8,
                    Trainer     = "Miley Cyrus",
                    WorkoutType = "\tTwerking",
                    TrainerCred = "Professional Twerker, singer/songwriter and musician. Product of child fame.",
                    TrainerImg  = "Images/miley.jpg",
                    Price       = "$9.99",
                    PlanImg     = "Images/girl.jpg",
                    WorkoutIcon = "Images/weightlifting4.png"
                };

                var megaArms = new PlanModel()
                {
                    Name        = "Presidential Lift",
                    Difficulty  = "MODERATE",
                    Frequency   = "1 - 3",
                    Duration    = 10,
                    Trainer     = "Barack Obama",
                    WorkoutType = "\tBodybuilding",
                    TrainerImg  = "Images/obama.jpg",
                    Price       = "$9.99",
                    PlanImg     = "Images/curls.jpg",
                    TrainerCred = "Leader of the free world",
                    WorkoutIcon = "Images/weightlifting4.png"
                };
                plans.Add(mileyPlan);
                plans.Add(megaArms);
            }
        }
        private void DummyData()
        {
            myPlans = new List <PlanModel> ();

            var mileyPlan = new PlanModel()
            {
                Name        = "Twerk It Like Miley",
                Difficulty  = "EASY",
                Frequency   = "9",
                Duration    = 8,
                Trainer     = "Miley Cyrus",
                WorkoutType = "Twerking",
                TrainerCred = "Professional Twerker, singer/songwriter and musician. Product of child fame.",
                TrainerImg  = "Images/miley.jpg",
                Price       = "$9.99",
                PlanImg     = "Images/girl.jpg",
                Exercises   = new List <ExerciseModel> ()
                {
                    new ExerciseModel()
                    {
                        Name             = "Bar Curls",
                        WeightPercentage = 0.3f,
                        Reps             = "10",
                        Weight           = "100"
                    },
                    new ExerciseModel()
                    {
                        Name             = "Bench Press",
                        WeightPercentage = 0.5f,
                        Reps             = "15",
                        Weight           = "100"
                    },
                    new ExerciseModel()
                    {
                        Name             = "Pulls Ups",
                        WeightPercentage = 1.0f,
                        Reps             = "10",
                        Weight           = "100"
                    }
                }
            };

            var megaArms = new PlanModel()
            {
                Name        = "Presidential Lift",
                Difficulty  = "MODERATE",
                Frequency   = "2",
                Duration    = 10,
                Trainer     = "Barack Obama",
                WorkoutType = "Bodybuilding",
                TrainerImg  = "Images/obama.jpg",
                Price       = "$9.99",
                PlanImg     = "Images/curls.jpg",
                TrainerCred = "Leader of the free world",
                Exercises   = new List <ExerciseModel> ()
                {
                    new ExerciseModel()
                    {
                        Name             = "Bar Curls",
                        WeightPercentage = 0.3f,
                        Reps             = "10",
                        Weight           = "100"
                    },
                    new ExerciseModel()
                    {
                        Name             = "Bench Press",
                        WeightPercentage = 0.5f,
                        Reps             = "15",
                        Weight           = "100"
                    },
                    new ExerciseModel()
                    {
                        Name             = "Pulls Ups",
                        WeightPercentage = 1.0f,
                        Reps             = "10",
                        Weight           = "100"
                    },
                    new ExerciseModel()
                    {
                        Name             = "Pulls Ups",
                        WeightPercentage = 1.0f,
                        Reps             = "10",
                        Weight           = "100"
                    },
                    new ExerciseModel()
                    {
                        Name             = "Pulls Ups",
                        WeightPercentage = 1.0f,
                        Reps             = "10",
                        Weight           = "100"
                    },
                    new ExerciseModel()
                    {
                        Name             = "Pulls Ups",
                        WeightPercentage = 1.0f,
                        Reps             = "10",
                        Weight           = "100"
                    },
                    new ExerciseModel()
                    {
                        Name             = "Pulls Ups",
                        WeightPercentage = 1.0f,
                        Reps             = "10",
                        Weight           = "100"
                    }
                }
            };

            var lol = new PlanModel()
            {
                Name        = "Presidential Lift",
                Difficulty  = "MODERATE",
                Frequency   = "2",
                Duration    = 10,
                Trainer     = "Barack Obama",
                WorkoutType = "Bodybuilding",
                TrainerImg  = "Images/obama.jpg",
                Price       = "$9.99",
                PlanImg     = "Images/curls.jpg",
                TrainerCred = "Leader of the free world",
                Exercises   = new List <ExerciseModel> ()
                {
                    new ExerciseModel()
                    {
                        Name             = "Bar Curls",
                        WeightPercentage = 0.3f,
                        Reps             = "10",
                        Weight           = "100"
                    },
                    new ExerciseModel()
                    {
                        Name             = "Bench Press",
                        WeightPercentage = 0.5f,
                        Reps             = "15",
                        Weight           = "200"
                    },
                    new ExerciseModel()
                    {
                        Name             = "Pulls Ups",
                        WeightPercentage = 1.0f,
                        Reps             = "10",
                        Weight           = "100"
                    }
                }
            };

            myPlans.Add(mileyPlan);
            myPlans.Add(megaArms);
            myPlans.Add(lol);
        }