File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed
test/JsonApiDotNetCoreExampleTests/Acceptance Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change 1- using System . Collections . Generic ;
21using System . Linq ;
32using System . Net ;
43using System . Net . Http ;
5- using System . Net . Http . Headers ;
64using System . Threading . Tasks ;
75using Bogus ;
86using DotNetCoreDocs ;
97using DotNetCoreDocs . Writers ;
10- using JsonApiDotNetCore . Serialization ;
11- using JsonApiDotNetCore . Services ;
128using JsonApiDotNetCoreExample ;
139using JsonApiDotNetCoreExample . Data ;
1410using JsonApiDotNetCoreExample . Models ;
1511using Microsoft . AspNetCore . Hosting ;
1612using Microsoft . AspNetCore . TestHost ;
17- using Newtonsoft . Json ;
1813using Xunit ;
1914
2015namespace JsonApiDotNetCoreExampleTests . Acceptance . Spec
@@ -55,7 +50,7 @@ public async Task Respond_404_If_EntityDoesNotExist()
5550 var response = await client . SendAsync ( request ) ;
5651
5752 // Assert
58- Assert . Equal ( HttpStatusCode . NoContent , response . StatusCode ) ;
53+ Assert . Equal ( HttpStatusCode . NotFound , response . StatusCode ) ;
5954 }
6055 }
6156}
Original file line number Diff line number Diff line change @@ -424,7 +424,7 @@ public async Task Can_Delete_TodoItem()
424424 var response = await _fixture . MakeRequest < TodoItem > ( description , request ) ;
425425
426426 // Assert
427- Assert . Equal ( HttpStatusCode . OK , response . StatusCode ) ;
427+ Assert . Equal ( HttpStatusCode . NoContent , response . StatusCode ) ;
428428 Assert . Null ( _context . TodoItems . FirstOrDefault ( t => t . Id == todoItem . Id ) ) ;
429429 }
430430 }
You can’t perform that action at this time.
0 commit comments