Esempio n. 1
0
        public Athlete SetupFakeAthlete(string username, string password, TrainingPeaksAthleteAccountTypes accountType)
        {
            var athlete = new Athlete
            {
                TPData = new TrainingPeaksAthleteData
                {
                    LoginName     = username,
                    LoginPassword = password,
                    AccountType   = accountType
                }
            };

            return(athlete);
        }
Esempio n. 2
0
 public static AthleteAccountTypes AccountTypeMapping(TrainingPeaksAthleteAccountTypes accountType) => (AthleteAccountTypes)accountType;
 public static AthleteAccountTypes AccountTypeMapping(TrainingPeaksAthleteAccountTypes accountType) => (AthleteAccountTypes)accountType;
        public Athlete SetupFakeAthlete(string username, string password, TrainingPeaksAthleteAccountTypes accountType)
        {
            var athlete = new Athlete
            {
                TPData = new TrainingPeaksAthleteData
                {
                    LoginName = username,
                    LoginPassword = password,
                    AccountType = accountType
                }
            };

            return athlete;
        }