public Client(IAuthenticator authenticator) { _restClient = new RestClient(StravaClient.ApiBaseUrl) { Authenticator = authenticator }; Athletes = new AthleteClient(this); Activities = new ActivityClient(this); Segments = new SegmentClient(this); Clubs = new ClubClient(this); }
public Client(IAuthenticator authenticator) { Authenticator = authenticator; _restClient = new RestClient(StravaClient.ApiBaseUrl) { Authenticator = authenticator, #if DEBUG HttpClientFactory = new MyHttpClientFactory(), #endif }; Athletes = new AthleteClient(this); Activities = new ActivityClient(this); Segments = new SegmentClient(this); Clubs = new ClubClient(this); }