fixing url's

broken/ef
Paul Schneider 2 years ago
parent edc9628b67
commit c06f518836
2 changed files with 3 additions and 3 deletions

@ -46,7 +46,7 @@ dataTable.Rows.Add(dataRow);
[Fact] [Fact]
public async Task TestHttpClient() public async Task TestHttpClient()
{ {
string url = "http://localhost:88/index.json"; string url = "http://isn.pschneider.fr/index.json";
HttpClient client = new HttpClient(); HttpClient client = new HttpClient();
// var json = await client.GetStringAsync(new System.Uri(url)); // var json = await client.GetStringAsync(new System.Uri(url));
var response = await client.GetAsync(url); var response = await client.GetAsync(url);
@ -66,7 +66,7 @@ dataTable.Rows.Add(dataRow);
[Fact] [Fact]
public async Task GetServerResourcesUsingWebRequestAsyncTest() public async Task GetServerResourcesUsingWebRequestAsyncTest()
{ {
var model = await SourceHelpers.GetServerResourcesUsingWebRequestAsync("Http://localhost:88/index.json"); var model = await SourceHelpers.GetServerResourcesUsingWebRequestAsync("Http://isn.pschneider.fr/index.json");
Console.WriteLine(JsonConvert.SerializeObject(model)); Console.WriteLine(JsonConvert.SerializeObject(model));
Assert.NotNull(model.Resources); Assert.NotNull(model.Resources);
var pub = model.Resources.FirstOrDefault((r) => r.Type == "PackagePublish/2.0.0"); var pub = model.Resources.FirstOrDefault((r) => r.Type == "PackagePublish/2.0.0");

Loading…