Skip to content

Commit c27cc40

Browse files
committed
Cleanup whitespace
1 parent f1ca076 commit c27cc40

2 files changed

Lines changed: 0 additions & 82 deletions

File tree

test/JsonApiDotNetCoreTests/IntegrationTests/Meta/OperationsRequestMetaTests.cs

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -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
}

test/JsonApiDotNetCoreTests/IntegrationTests/Meta/RequestMetaTests.cs

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,8 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
9696
httpResponse.ShouldHaveStatusCode(HttpStatusCode.NoContent);
9797

9898
store.Document.Should().NotBeNull();
99-
10099
store.Document.Meta.Should().BeEquivalentToJson(documentMeta);
101-
102100
store.Document.Data.SingleValue.Should().NotBeNull();
103-
104101
store.Document.Data.SingleValue.Meta.Should().BeEquivalentToJson(resourceMeta);
105102

106103
store.Document.Data.SingleValue.Relationships.Should().ContainKey("productFamily").WhoseValue.With(value =>
@@ -182,20 +179,15 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
182179
httpResponse.ShouldHaveStatusCode(HttpStatusCode.NoContent);
183180

184181
store.Document.Should().NotBeNull();
185-
186182
store.Document.Meta.Should().BeEquivalentToJson(documentMeta);
187-
188183
store.Document.Data.SingleValue.Should().NotBeNull();
189-
190184
store.Document.Data.SingleValue.Meta.Should().BeEquivalentToJson(resourceMeta);
191185

192186
store.Document.Data.SingleValue.Relationships.Should().ContainKey("tickets").WhoseValue.With(value =>
193187
{
194188
value.Should().NotBeNull();
195189
value.Meta.Should().BeEquivalentToJson(relationshipMeta);
196-
197190
value.Data.ManyValue.Should().HaveCount(2);
198-
199191
value.Data.ManyValue[0].Meta.Should().BeEquivalentToJson(identifierMeta1);
200192
value.Data.ManyValue[1].Meta.Should().BeEquivalentToJson(identifierMeta2);
201193
});
@@ -257,20 +249,15 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
257249
httpResponse.ShouldHaveStatusCode(HttpStatusCode.Created);
258250

259251
store.Document.Should().NotBeNull();
260-
261252
store.Document.Meta.Should().BeEquivalentToJson(documentMeta);
262253
store.Document.Data.SingleValue.Should().NotBeNull();
263-
264254
store.Document.Data.SingleValue.Meta.Should().BeEquivalentToJson(resourceMeta);
265255

266256
store.Document.Data.SingleValue.Relationships.Should().ContainKey("productFamily").WhoseValue.With(value =>
267257
{
268258
value.Should().NotBeNull();
269-
270259
value.Meta.Should().BeEquivalentToJson(relationshipMeta);
271-
272260
value.Data.SingleValue.Should().NotBeNull();
273-
274261
value.Data.SingleValue.Meta.Should().BeEquivalentToJson(identifierMeta);
275262
});
276263
}
@@ -342,22 +329,16 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
342329
httpResponse.ShouldHaveStatusCode(HttpStatusCode.Created);
343330

344331
store.Document.Should().NotBeNull();
345-
346332
store.Document.Meta.Should().BeEquivalentToJson(documentMeta);
347-
348333
store.Document.Data.SingleValue.Should().NotBeNull();
349334
store.Document.Data.SingleValue.Meta.Should().BeEquivalentToJson(resourceMeta);
350335

351336
store.Document.Data.SingleValue.Relationships.Should().ContainKey("tickets").WhoseValue.With(value =>
352337
{
353338
value.Should().NotBeNull();
354-
355339
value.Meta.Should().BeEquivalentToJson(relationshipMeta);
356-
357340
value.Data.ManyValue.Should().HaveCount(2);
358-
359341
value.Data.ManyValue[0].Meta.Should().BeEquivalentToJson(identifierMeta1);
360-
361342
value.Data.ManyValue[1].Meta.Should().BeEquivalentToJson(identifierMeta2);
362343
});
363344
}
@@ -401,11 +382,8 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
401382
httpResponse.ShouldHaveStatusCode(HttpStatusCode.NoContent);
402383

403384
store.Document.Should().NotBeNull();
404-
405385
store.Document.Meta.Should().BeEquivalentToJson(documentMeta);
406-
407386
store.Document.Data.SingleValue.Should().NotBeNull();
408-
409387
store.Document.Data.SingleValue.Meta.Should().BeEquivalentToJson(identifierMeta);
410388
}
411389

@@ -459,13 +437,9 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
459437
httpResponse.ShouldHaveStatusCode(HttpStatusCode.NoContent);
460438

461439
store.Document.Should().NotBeNull();
462-
463440
store.Document.Meta.Should().BeEquivalentToJson(documentMeta);
464-
465441
store.Document.Data.ManyValue.Should().HaveCount(2);
466-
467442
store.Document.Data.ManyValue[0].Meta.Should().BeEquivalentToJson(identifierMeta1);
468-
469443
store.Document.Data.ManyValue[1].Meta.Should().BeEquivalentToJson(identifierMeta2);
470444
}
471445

@@ -519,13 +493,9 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
519493
httpResponse.ShouldHaveStatusCode(HttpStatusCode.NoContent);
520494

521495
store.Document.Should().NotBeNull();
522-
523496
store.Document.Meta.Should().BeEquivalentToJson(documentMeta);
524-
525497
store.Document.Data.ManyValue.Should().HaveCount(2);
526-
527498
store.Document.Data.ManyValue[0].Meta.Should().BeEquivalentToJson(identifierMeta1);
528-
529499
store.Document.Data.ManyValue[1].Meta.Should().BeEquivalentToJson(identifierMeta2);
530500
}
531501

@@ -575,13 +545,9 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
575545

576546
// Assert
577547
httpResponse.ShouldHaveStatusCode(HttpStatusCode.NoContent);
578-
579548
store.Document.Should().NotBeNull();
580-
581549
store.Document.Meta.Should().BeEquivalentToJson(documentMeta);
582-
583550
store.Document.Data.ManyValue.Should().HaveCount(2);
584-
585551
store.Document.Data.ManyValue[0].Meta.Should().BeEquivalentToJson(identifierMeta1);
586552
store.Document.Data.ManyValue[1].Meta.Should().BeEquivalentToJson(identifierMeta2);
587553
}

0 commit comments

Comments
 (0)