コード例 #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);
        }
コード例 #2
0
 public static AthleteAccountTypes AccountTypeMapping(TrainingPeaksAthleteAccountTypes accountType) => (AthleteAccountTypes)accountType;
コード例 #3
0
 public static AthleteAccountTypes AccountTypeMapping(TrainingPeaksAthleteAccountTypes accountType) => (AthleteAccountTypes)accountType;
コード例 #4
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;
        }