@@ -34,28 +34,27 @@ private static string WritePeople(PersonCollectionResponseDocument? peopleRespon
3434 return builder . ToString ( ) ;
3535 }
3636
37- private static void WritePerson ( PersonDataInResponse person , ICollection < DataInResponse > includes , StringBuilder builder )
37+ private static void WritePerson ( PersonDataInResponse person , List < DataInResponse > includes , StringBuilder builder )
3838 {
39- ICollection < TodoItemIdentifierInResponse > assignedTodoItems = person . Relationships ? . AssignedTodoItems ? . Data ?? [ ] ;
39+ List < TodoItemIdentifierInResponse > assignedTodoItems = person . Relationships ? . AssignedTodoItems ? . Data ?? [ ] ;
4040
4141 builder . AppendLine ( $ " Person { person . Id } : { person . Attributes ? . DisplayName } with { assignedTodoItems . Count } assigned todo-items:") ;
4242 WriteRelatedTodoItems ( assignedTodoItems , includes , builder ) ;
4343 }
4444
45- private static void WriteRelatedTodoItems ( IEnumerable < TodoItemIdentifierInResponse > todoItemIdentifiers , ICollection < DataInResponse > includes ,
46- StringBuilder builder )
45+ private static void WriteRelatedTodoItems ( List < TodoItemIdentifierInResponse > todoItemIdentifiers , List < DataInResponse > includes , StringBuilder builder )
4746 {
4847 foreach ( TodoItemIdentifierInResponse todoItemIdentifier in todoItemIdentifiers )
4948 {
5049 TodoItemDataInResponse includedTodoItem = includes . OfType < TodoItemDataInResponse > ( ) . Single ( include => include . Id == todoItemIdentifier . Id ) ;
51- ICollection < TagIdentifierInResponse > tags = includedTodoItem . Relationships ? . Tags ? . Data ?? [ ] ;
50+ List < TagIdentifierInResponse > tags = includedTodoItem . Relationships ? . Tags ? . Data ?? [ ] ;
5251
5352 builder . AppendLine ( $ " TodoItem { includedTodoItem . Id } : { includedTodoItem . Attributes ? . Description } with { tags . Count } tags:") ;
5453 WriteRelatedTags ( tags , includes , builder ) ;
5554 }
5655 }
5756
58- private static void WriteRelatedTags ( IEnumerable < TagIdentifierInResponse > tagIdentifiers , ICollection < DataInResponse > includes , StringBuilder builder )
57+ private static void WriteRelatedTags ( List < TagIdentifierInResponse > tagIdentifiers , List < DataInResponse > includes , StringBuilder builder )
5958 {
6059 foreach ( TagIdentifierInResponse tagIdentifier in tagIdentifiers )
6160 {
0 commit comments