@@ -445,19 +445,22 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
445
445
httpResponse . Should ( ) . HaveStatusCode ( HttpStatusCode . OK ) ;
446
446
447
447
responseDocument . Data . SingleValue . Should ( ) . NotBeNull ( ) ;
448
+ responseDocument . Data . SingleValue . Type . Should ( ) . Be ( "blogs" ) ;
448
449
responseDocument . Data . SingleValue . Id . Should ( ) . Be ( blog . StringId ) ;
449
450
responseDocument . Data . SingleValue . Attributes . Should ( ) . HaveCount ( 1 ) ;
450
451
responseDocument . Data . SingleValue . Attributes [ "title" ] . Should ( ) . Be ( blog . Title ) ;
451
452
responseDocument . Data . SingleValue . Relationships . Should ( ) . BeNull ( ) ;
452
453
453
454
responseDocument . Included . Should ( ) . HaveCount ( 2 ) ;
454
455
456
+ responseDocument . Included [ 0 ] . Type . Should ( ) . Be ( "webAccounts" ) ;
455
457
responseDocument . Included [ 0 ] . Id . Should ( ) . Be ( blog . Owner . StringId ) ;
456
458
responseDocument . Included [ 0 ] . Attributes . Should ( ) . HaveCount ( 2 ) ;
457
459
responseDocument . Included [ 0 ] . Attributes [ "userName" ] . Should ( ) . Be ( blog . Owner . UserName ) ;
458
460
responseDocument . Included [ 0 ] . Attributes [ "displayName" ] . Should ( ) . Be ( blog . Owner . DisplayName ) ;
459
461
responseDocument . Included [ 0 ] . Relationships . Should ( ) . BeNull ( ) ;
460
462
463
+ responseDocument . Included [ 1 ] . Type . Should ( ) . Be ( "blogPosts" ) ;
461
464
responseDocument . Included [ 1 ] . Id . Should ( ) . Be ( blog . Owner . Posts [ 0 ] . StringId ) ;
462
465
responseDocument . Included [ 1 ] . Attributes . Should ( ) . HaveCount ( 1 ) ;
463
466
responseDocument . Included [ 1 ] . Attributes [ "caption" ] . Should ( ) . Be ( blog . Owner . Posts [ 0 ] . Caption ) ;
@@ -503,6 +506,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
503
506
httpResponse . Should ( ) . HaveStatusCode ( HttpStatusCode . OK ) ;
504
507
505
508
responseDocument . Data . SingleValue . Should ( ) . NotBeNull ( ) ;
509
+ responseDocument . Data . SingleValue . Type . Should ( ) . Be ( "blogs" ) ;
506
510
responseDocument . Data . SingleValue . Id . Should ( ) . Be ( blog . StringId ) ;
507
511
responseDocument . Data . SingleValue . Attributes . Should ( ) . HaveCount ( 1 ) ;
508
512
responseDocument . Data . SingleValue . Attributes [ "title" ] . Should ( ) . Be ( blog . Title ) ;
@@ -513,6 +517,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
513
517
514
518
responseDocument . Included . Should ( ) . HaveCount ( 2 ) ;
515
519
520
+ responseDocument . Included [ 0 ] . Type . Should ( ) . Be ( "webAccounts" ) ;
516
521
responseDocument . Included [ 0 ] . Id . Should ( ) . Be ( blog . Owner . StringId ) ;
517
522
responseDocument . Included [ 0 ] . Attributes [ "userName" ] . Should ( ) . Be ( blog . Owner . UserName ) ;
518
523
responseDocument . Included [ 0 ] . Attributes [ "displayName" ] . Should ( ) . Be ( blog . Owner . DisplayName ) ;
@@ -522,6 +527,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
522
527
responseDocument . Included [ 0 ] . Relationships [ "posts" ] . Links . Self . Should ( ) . NotBeNull ( ) ;
523
528
responseDocument . Included [ 0 ] . Relationships [ "posts" ] . Links . Related . Should ( ) . NotBeNull ( ) ;
524
529
530
+ responseDocument . Included [ 1 ] . Type . Should ( ) . Be ( "blogPosts" ) ;
525
531
responseDocument . Included [ 1 ] . Id . Should ( ) . Be ( blog . Owner . Posts [ 0 ] . StringId ) ;
526
532
responseDocument . Included [ 1 ] . Attributes [ "caption" ] . Should ( ) . Be ( blog . Owner . Posts [ 0 ] . Caption ) ;
527
533
responseDocument . Included [ 1 ] . Attributes [ "url" ] . Should ( ) . Be ( blog . Owner . Posts [ 0 ] . Url ) ;
0 commit comments