refacto BlogPost serialization
This commit is contained in:
parent
ff7a6ac16d
commit
64547840e4
8 changed files with 22 additions and 17 deletions
|
|
@ -239,7 +239,8 @@ public sealed class BlogApiTests : IClassFixture<BlogsWebServerFixture>
|
|||
|
||||
// The list should now be empty.
|
||||
var listResponse = await http.GetAsync("/api/v1/blog");
|
||||
using var doc = JsonDocument.Parse(await listResponse.Content.ReadAsStringAsync());
|
||||
String response = await listResponse.Content.ReadAsStringAsync();
|
||||
using var doc = JsonDocument.Parse(response);
|
||||
Assert.Equal(0, doc.RootElement.GetArrayLength());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue