master
wanggaofeng 11 months ago
parent a527c3331c
commit 6eef673c33

@ -36,7 +36,7 @@ namespace XUnitDIStudy.Test
// Assert
response.EnsureSuccessStatusCode(); // Status Code 200-299
List<Student> result = System.Text.Json.JsonSerializer.Deserialize<List<Student>>(response.Content.ReadAsStringAsync().Result);
List<Student> result = System.Text.Json.JsonSerializer.Deserialize<List<Student>>(await response.Content.ReadAsStringAsync());
Assert.NotNull(result);
Assert.True(result.Count>0);

Loading…
Cancel
Save