public void SetUp() { var apiSettingsWithParameters = new APISettings { Endpoint = this.AppSettings.APIConfig.EndpointBaseUrl.ProfileSearch, QueryParameters = new List <KeyValuePair <string, string> > { new KeyValuePair <string, string>("page", "2"), new KeyValuePair <string, string>("pageSize", "15"), }, }; var apiSettingsWithoutParameters = new APISettings { Endpoint = this.AppSettings.APIConfig.EndpointBaseUrl.ProfileSearch }; var tempAppSettings = new AppSettings { APIConfig = new APIConfig { ApimSubscriptionKey = this.CommonAction.RandomString(10), Version = this.AppSettings.APIConfig.Version, }, }; this.authorisedApi = new JobProfileApi(new RestClientFactory(), new RestRequestFactory(), this.AppSettings, apiSettingsWithoutParameters); this.authorisedApiWithQueryParameters = new JobProfileApi(new RestClientFactory(), new RestRequestFactory(), this.AppSettings, apiSettingsWithParameters); this.unauthorisedApi = new JobProfileApi(new RestClientFactory(), new RestRequestFactory(), tempAppSettings, apiSettingsWithoutParameters); }
public void SetUp() { var apiSettingsWithoutParameters = new APISettings { Endpoint = this.AppSettings.APIConfig.EndpointBaseUrl.ProfileSummary }; var tempAppSettings = new AppSettings { APIConfig = new APIConfig { ApimSubscriptionKey = this.CommonAction.RandomString(10), Version = this.AppSettings.APIConfig.Version, }, }; this.authorisedApi = new JobProfileApi(new RestClientFactory(), new RestRequestFactory(), this.AppSettings, apiSettingsWithoutParameters); this.unauthorisedApi = new JobProfileApi(new RestClientFactory(), new RestRequestFactory(), tempAppSettings, apiSettingsWithoutParameters); }