File tree Expand file tree Collapse file tree 3 files changed +2
-7
lines changed
src/JsonApiDotNetCore/Controllers
test/JsonApiDotNetCoreExampleTests/Acceptance Expand file tree Collapse file tree 3 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ public virtual async Task<IActionResult> DeleteAsync(TId id)
201201 if ( ! wasDeleted )
202202 return NotFound ( ) ;
203203
204- return Ok ( ) ;
204+ return NoContent ( ) ;
205205 }
206206
207207 private IQueryable < T > ApplySortAndFilterQuery ( IQueryable < T > entities )
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
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