File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
test/JsonApiDotNetCoreExampleTests/Acceptance/Spec/DocumentTests Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 14
14
using JsonApiDotNetCoreExampleTests . Startups ;
15
15
using JsonApiDotNetCoreExample . Models ;
16
16
using System . Collections ;
17
+ using System ;
17
18
18
19
namespace JsonApiDotNetCoreExampleTests . Acceptance . Spec . DocumentTests
19
20
{
@@ -32,6 +33,7 @@ public Meta(DocsFixture<Startup, JsonDocWriter> fixture)
32
33
public async Task Total_Record_Count_Included ( )
33
34
{
34
35
// arrange
36
+ _context . TodoItems . RemoveRange ( _context . TodoItems ) ;
35
37
var expectedCount = _context . TodoItems . Count ( ) ;
36
38
var builder = new WebHostBuilder ( )
37
39
. UseStartup < MetaStartup > ( ) ;
@@ -45,7 +47,9 @@ public async Task Total_Record_Count_Included()
45
47
46
48
// act
47
49
var response = await client . SendAsync ( request ) ;
48
- var documents = JsonConvert . DeserializeObject < Documents > ( await response . Content . ReadAsStringAsync ( ) ) ;
50
+ var responseBody = await response . Content . ReadAsStringAsync ( ) ;
51
+ Console . WriteLine ( responseBody ) ;
52
+ var documents = JsonConvert . DeserializeObject < Documents > ( responseBody ) ;
49
53
50
54
// assert
51
55
Assert . Equal ( HttpStatusCode . OK , response . StatusCode ) ;
You can’t perform that action at this time.
0 commit comments