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 1414using JsonApiDotNetCoreExampleTests . Startups ;
1515using JsonApiDotNetCoreExample . Models ;
1616using System . Collections ;
17+ using System ;
1718
1819namespace JsonApiDotNetCoreExampleTests . Acceptance . Spec . DocumentTests
1920{
@@ -32,6 +33,7 @@ public Meta(DocsFixture<Startup, JsonDocWriter> fixture)
3233 public async Task Total_Record_Count_Included ( )
3334 {
3435 // arrange
36+ _context . TodoItems . RemoveRange ( _context . TodoItems ) ;
3537 var expectedCount = _context . TodoItems . Count ( ) ;
3638 var builder = new WebHostBuilder ( )
3739 . UseStartup < MetaStartup > ( ) ;
@@ -45,7 +47,9 @@ public async Task Total_Record_Count_Included()
4547
4648 // act
4749 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 ) ;
4953
5054 // assert
5155 Assert . Equal ( HttpStatusCode . OK , response . StatusCode ) ;
You can’t perform that action at this time.
0 commit comments