Пример #1
0
 protected static void SetUpClient()
 {
     // Update port # in the following line.
     client.BaseAddress = new Uri(DeployEnvironment.GetEnvironment().GetURL());
     client.DefaultRequestHeaders.Accept.Clear();
     client.DefaultRequestHeaders.Accept.Add(
         new MediaTypeWithQualityHeaderValue("application/json"));
 }