|
|
@ -36,7 +36,7 @@ namespace XUnitDIStudy.Test
|
|
|
|
// Assert
|
|
|
|
// Assert
|
|
|
|
response.EnsureSuccessStatusCode(); // Status Code 200-299
|
|
|
|
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.NotNull(result);
|
|
|
|
Assert.True(result.Count>0);
|
|
|
|
Assert.True(result.Count>0);
|
|
|
|