@@ -105,27 +105,20 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
105105 httpResponse . ShouldHaveStatusCode ( HttpStatusCode . NoContent ) ;
106106
107107 store . Document . Should ( ) . NotBeNull ( ) ;
108-
109108 store . Document . Meta . Should ( ) . BeEquivalentToJson ( documentMeta ) ;
110109
111110 store . Document . Operations . Should ( ) . ContainSingle ( ) . Which . With ( operation =>
112111 {
113112 operation . Should ( ) . NotBeNull ( ) ;
114-
115113 operation . Meta . Should ( ) . BeEquivalentToJson ( operationMeta ) ;
116-
117114 operation . Data . SingleValue . Should ( ) . NotBeNull ( ) ;
118-
119115 operation . Data . SingleValue . Meta . Should ( ) . BeEquivalentToJson ( resourceMeta ) ;
120116
121117 operation . Data . SingleValue . Relationships . Should ( ) . ContainKey ( "productFamily" ) . WhoseValue . With ( value =>
122118 {
123119 value . Should ( ) . NotBeNull ( ) ;
124-
125120 value . Meta . Should ( ) . BeEquivalentToJson ( relationshipMeta ) ;
126-
127121 value . Data . SingleValue . Should ( ) . NotBeNull ( ) ;
128-
129122 value . Data . SingleValue . Meta . Should ( ) . BeEquivalentToJson ( identifierMeta ) ;
130123 } ) ;
131124 } ) ;
@@ -210,27 +203,20 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
210203 httpResponse . ShouldHaveStatusCode ( HttpStatusCode . NoContent ) ;
211204
212205 store . Document . Should ( ) . NotBeNull ( ) ;
213-
214206 store . Document . Meta . Should ( ) . BeEquivalentToJson ( documentMeta ) ;
215207
216208 store . Document . Operations . Should ( ) . ContainSingle ( ) . Which . With ( operation =>
217209 {
218210 operation . Should ( ) . NotBeNull ( ) ;
219-
220211 operation . Meta . Should ( ) . BeEquivalentToJson ( operationMeta ) ;
221-
222212 operation . Data . SingleValue . Should ( ) . NotBeNull ( ) ;
223-
224213 operation . Data . SingleValue . Meta . Should ( ) . BeEquivalentToJson ( resourceMeta ) ;
225214
226215 operation . Data . SingleValue . Relationships . Should ( ) . ContainKey ( "tickets" ) . WhoseValue . With ( value =>
227216 {
228217 value . Should ( ) . NotBeNull ( ) ;
229-
230218 value . Meta . Should ( ) . BeEquivalentToJson ( relationshipMeta ) ;
231-
232219 value . Data . ManyValue . Should ( ) . HaveCount ( 2 ) ;
233-
234220 value . Data . ManyValue [ 0 ] . Meta . Should ( ) . BeEquivalentToJson ( identifierMeta1 ) ;
235221 value . Data . ManyValue [ 1 ] . Meta . Should ( ) . BeEquivalentToJson ( identifierMeta2 ) ;
236222 } ) ;
@@ -302,27 +288,20 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
302288 httpResponse . ShouldHaveStatusCode ( HttpStatusCode . OK ) ;
303289
304290 store . Document . Should ( ) . NotBeNull ( ) ;
305-
306291 store . Document . Meta . Should ( ) . BeEquivalentToJson ( documentMeta ) ;
307292
308293 store . Document . Operations . Should ( ) . ContainSingle ( ) . Which . With ( operation =>
309294 {
310295 operation . Should ( ) . NotBeNull ( ) ;
311-
312296 operation . Meta . Should ( ) . BeEquivalentToJson ( operationMeta ) ;
313-
314297 operation . Data . SingleValue . Should ( ) . NotBeNull ( ) ;
315-
316298 operation . Data . SingleValue . Meta . Should ( ) . BeEquivalentToJson ( resourceMeta ) ;
317299
318300 operation . Data . SingleValue . Relationships . Should ( ) . ContainKey ( "productFamily" ) . WhoseValue . With ( value =>
319301 {
320302 value . Should ( ) . NotBeNull ( ) ;
321-
322303 value . Meta . Should ( ) . BeEquivalentToJson ( relationshipMeta ) ;
323-
324304 value . Data . SingleValue . Should ( ) . NotBeNull ( ) ;
325-
326305 value . Data . SingleValue . Meta . Should ( ) . BeEquivalentToJson ( identifierMeta ) ;
327306 } ) ;
328307 } ) ;
@@ -342,7 +321,6 @@ public async Task Accepts_meta_in_add_resource_operation_with_ToMany_relationshi
342321 Dictionary < string , object ? > identifierMeta2 = _fakers . IdentifierMeta . GenerateOne ( ) ;
343322
344323 string newFamilyName = _fakers . ProductFamily . GenerateOne ( ) . Name ;
345-
346324 SupportTicket existingTicket1 = _fakers . SupportTicket . GenerateOne ( ) ;
347325 SupportTicket existingTicket2 = _fakers . SupportTicket . GenerateOne ( ) ;
348326
@@ -405,27 +383,20 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
405383 httpResponse . ShouldHaveStatusCode ( HttpStatusCode . OK ) ;
406384
407385 store . Document . Should ( ) . NotBeNull ( ) ;
408-
409386 store . Document . Meta . Should ( ) . BeEquivalentToJson ( documentMeta ) ;
410387
411388 store . Document . Operations . Should ( ) . ContainSingle ( ) . Which . With ( operation =>
412389 {
413390 operation . Should ( ) . NotBeNull ( ) ;
414-
415391 operation . Meta . Should ( ) . BeEquivalentToJson ( operationMeta ) ;
416-
417392 operation . Data . SingleValue . Should ( ) . NotBeNull ( ) ;
418-
419393 operation . Data . SingleValue . Meta . Should ( ) . BeEquivalentToJson ( resourceMeta ) ;
420394
421395 operation . Data . SingleValue . Relationships . Should ( ) . ContainKey ( "tickets" ) . WhoseValue . With ( value =>
422396 {
423397 value . Should ( ) . NotBeNull ( ) ;
424-
425398 value . Meta . Should ( ) . BeEquivalentToJson ( relationshipMeta ) ;
426-
427399 value . Data . ManyValue . Should ( ) . HaveCount ( 2 ) ;
428-
429400 value . Data . ManyValue [ 0 ] . Meta . Should ( ) . BeEquivalentToJson ( identifierMeta1 ) ;
430401 value . Data . ManyValue [ 1 ] . Meta . Should ( ) . BeEquivalentToJson ( identifierMeta2 ) ;
431402 } ) ;
@@ -486,15 +457,12 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
486457 httpResponse . ShouldHaveStatusCode ( HttpStatusCode . NoContent ) ;
487458
488459 store . Document . Should ( ) . NotBeNull ( ) ;
489-
490460 store . Document . Meta . Should ( ) . BeEquivalentToJson ( documentMeta ) ;
491461
492462 store . Document . Operations . Should ( ) . ContainSingle ( ) . Which . With ( operation =>
493463 {
494464 operation . Should ( ) . NotBeNull ( ) ;
495-
496465 operation . Meta . Should ( ) . BeEquivalentToJson ( operationMeta ) ;
497-
498466 operation . Data . SingleValue . Should ( ) . NotBeNull ( ) ;
499467 operation . Data . SingleValue . Meta . Should ( ) . BeEquivalentToJson ( identifierMeta ) ;
500468 } ) ;
@@ -565,19 +533,14 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
565533 httpResponse . ShouldHaveStatusCode ( HttpStatusCode . NoContent ) ;
566534
567535 store . Document . Should ( ) . NotBeNull ( ) ;
568-
569536 store . Document . Meta . Should ( ) . BeEquivalentToJson ( documentMeta ) ;
570537
571538 store . Document . Operations . Should ( ) . ContainSingle ( ) . Which . With ( operation =>
572539 {
573540 operation . Should ( ) . NotBeNull ( ) ;
574-
575541 operation . Meta . Should ( ) . BeEquivalentToJson ( operationMeta ) ;
576-
577542 operation . Data . ManyValue . Should ( ) . HaveCount ( 2 ) ;
578-
579543 operation . Data . ManyValue [ 0 ] . Meta . Should ( ) . BeEquivalentToJson ( identifierMeta1 ) ;
580-
581544 operation . Data . ManyValue [ 1 ] . Meta . Should ( ) . BeEquivalentToJson ( identifierMeta2 ) ;
582545 } ) ;
583546 }
@@ -647,19 +610,14 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
647610 httpResponse . ShouldHaveStatusCode ( HttpStatusCode . NoContent ) ;
648611
649612 store . Document . Should ( ) . NotBeNull ( ) ;
650-
651613 store . Document . Meta . Should ( ) . BeEquivalentToJson ( documentMeta ) ;
652614
653615 store . Document . Operations . Should ( ) . ContainSingle ( ) . Which . With ( operation =>
654616 {
655617 operation . Should ( ) . NotBeNull ( ) ;
656-
657618 operation . Meta . Should ( ) . BeEquivalentToJson ( operationMeta ) ;
658-
659619 operation . Data . ManyValue . Should ( ) . HaveCount ( 2 ) ;
660-
661620 operation . Data . ManyValue [ 0 ] . Meta . Should ( ) . BeEquivalentToJson ( identifierMeta1 ) ;
662-
663621 operation . Data . ManyValue [ 1 ] . Meta . Should ( ) . BeEquivalentToJson ( identifierMeta2 ) ;
664622 } ) ;
665623 }
@@ -727,17 +685,13 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
727685 httpResponse . ShouldHaveStatusCode ( HttpStatusCode . NoContent ) ;
728686
729687 store . Document . Should ( ) . NotBeNull ( ) ;
730-
731688 store . Document . Meta . Should ( ) . BeEquivalentToJson ( documentMeta ) ;
732689
733690 store . Document . Operations . Should ( ) . ContainSingle ( ) . Which . With ( operation =>
734691 {
735692 operation . Should ( ) . NotBeNull ( ) ;
736-
737693 operation . Meta . Should ( ) . BeEquivalentToJson ( operationMeta ) ;
738-
739694 operation . Data . ManyValue . Should ( ) . HaveCount ( 2 ) ;
740-
741695 operation . Data . ManyValue [ 0 ] . Meta . Should ( ) . BeEquivalentToJson ( identifierMeta1 ) ;
742696 operation . Data . ManyValue [ 1 ] . Meta . Should ( ) . BeEquivalentToJson ( identifierMeta2 ) ;
743697 } ) ;
@@ -787,13 +741,11 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
787741 httpResponse . ShouldHaveStatusCode ( HttpStatusCode . NoContent ) ;
788742
789743 store . Document . Should ( ) . NotBeNull ( ) ;
790-
791744 store . Document . Meta . Should ( ) . BeEquivalentToJson ( documentMeta ) ;
792745
793746 store . Document . Operations . Should ( ) . ContainSingle ( ) . Which . With ( operation =>
794747 {
795748 operation . Should ( ) . NotBeNull ( ) ;
796-
797749 operation . Meta . Should ( ) . BeEquivalentToJson ( operationMeta ) ;
798750 } ) ;
799751 }
0 commit comments