Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e9980c2

Browse files
committedOct 10, 2019
fix: missing reference'
1 parent d7c6353 commit e9980c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎test/JsonApiDotNetCoreExampleTests/Acceptance/TodoItemsControllerTests.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public async Task Can_Filter_TodoItems_ByParent_Using_IsNotNull_Operator()
203203
Assert.Equal(HttpStatusCode.OK, response.StatusCode);
204204

205205
var body = await response.Content.ReadAsStringAsync();
206-
var todoItems = _fixture.GetService<IJsonApiDeSerializer>().DeserializeList<TodoItem>(body);
206+
var todoItems = _fixture.GetDeserializer().DeserializeList<TodoItem>(body).Data;
207207

208208
// Assert
209209
Assert.NotEmpty(todoItems);
@@ -263,7 +263,7 @@ public async Task Can_Filter_TodoItems_ByParent_Using_IsNull_Operator()
263263
Assert.Equal(HttpStatusCode.OK, response.StatusCode);
264264

265265
var body = await response.Content.ReadAsStringAsync();
266-
var todoItems = _fixture.GetService<IJsonApiDeSerializer>().DeserializeList<TodoItem>(body);
266+
var todoItems = _fixture.GetDeserializer().DeserializeList<TodoItem>(body).Data;
267267

268268
// Assert
269269
Assert.NotEmpty(todoItems);

0 commit comments

Comments
 (0)
Please sign in to comment.