@@ -101,7 +101,7 @@ public async Task Accepts_top_level_meta_in_post_resource_request()
101
101
meta = GetExampleMetaData ( )
102
102
} ;
103
103
104
- string route = $ "/supportTickets";
104
+ const string route = "/supportTickets" ;
105
105
106
106
// Act
107
107
( HttpResponseMessage httpResponse , _ ) = await _testContext . ExecutePostAsync < Document > ( route , requestBody ) ;
@@ -196,7 +196,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
196
196
type = "supportTickets" ,
197
197
attributes = new
198
198
{
199
- description = existingTicket . Description ,
199
+ description = existingTicket . Description
200
200
} ,
201
201
relationships = new
202
202
{
@@ -213,7 +213,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
213
213
meta = GetExampleMetaData ( )
214
214
} ;
215
215
216
- string route = $ "/supportTickets";
216
+ const string route = "/supportTickets" ;
217
217
218
218
// Act
219
219
( HttpResponseMessage httpResponse , _ ) = await _testContext . ExecutePostAsync < Document > ( route , requestBody ) ;
@@ -265,7 +265,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
265
265
266
266
await _testContext . RunOnDatabaseAsync ( async dbContext =>
267
267
{
268
- var supportTicketInDatabase = await dbContext . SupportTickets
268
+ SupportTicket ? supportTicketInDatabase = await dbContext . SupportTickets
269
269
. Include ( supportTicket => supportTicket . ProductFamily )
270
270
. FirstAsync ( supportTicket => supportTicket . Id == existingTicket . Id ) ;
271
271
@@ -310,7 +310,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
310
310
meta = GetExampleMetaData ( )
311
311
} ;
312
312
313
- string route = $ "/operations";
313
+ const string route = "/operations" ;
314
314
315
315
// Act
316
316
( HttpResponseMessage httpResponse , _ ) = await _testContext . ExecutePostAtomicAsync < Document > ( route , requestBody ) ;
@@ -351,7 +351,7 @@ public async Task Accepts_top_level_meta_in_atomic_add_resource_operation()
351
351
meta = GetExampleMetaData ( )
352
352
} ;
353
353
354
- string route = $ "/operations";
354
+ const string route = "/operations" ;
355
355
356
356
// Act
357
357
( HttpResponseMessage httpResponse , _ ) = await _testContext . ExecutePostAtomicAsync < Document > ( route , requestBody ) ;
@@ -396,7 +396,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
396
396
meta = GetExampleMetaData ( )
397
397
} ;
398
398
399
- string route = $ "/operations";
399
+ const string route = "/operations" ;
400
400
401
401
// Act
402
402
( HttpResponseMessage httpResponse , string responseDocument ) = await _testContext . ExecutePostAtomicAsync < string > ( route , requestBody ) ;
@@ -471,7 +471,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
471
471
type = "supportTickets" ,
472
472
attributes = new
473
473
{
474
- description = existingTicket . Description ,
474
+ description = existingTicket . Description
475
475
} ,
476
476
relationships = new
477
477
{
@@ -488,7 +488,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
488
488
}
489
489
} ;
490
490
491
- string route = $ "/supportTickets";
491
+ const string route = "/supportTickets" ;
492
492
493
493
// Act
494
494
( HttpResponseMessage httpResponse , _ ) = await _testContext . ExecutePostAsync < Document > ( route , requestBody ) ;
@@ -500,7 +500,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
500
500
store . Document . Data . SingleValue . Should ( ) . NotBeNull ( ) ;
501
501
store . Document . Data . SingleValue . Relationships . Should ( ) . NotBeNull ( ) ;
502
502
store . Document . Data . SingleValue . Relationships . Should ( ) . HaveCount ( 1 ) ;
503
- store . Document . Data . SingleValue . Relationships . TryGetValue ( "productFamily" , out var relationship ) . Should ( ) . BeTrue ( ) ;
503
+ store . Document . Data . SingleValue . Relationships . TryGetValue ( "productFamily" , out RelationshipObject ? relationship ) . Should ( ) . BeTrue ( ) ;
504
504
relationship ! . Meta . Should ( ) . NotBeNull ( ) ;
505
505
506
506
ValidateMetaData ( relationship . Meta ) ;
@@ -552,7 +552,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
552
552
}
553
553
} ;
554
554
555
- string route = "/operations" ;
555
+ const string route = "/operations" ;
556
556
557
557
// Act
558
558
( HttpResponseMessage httpResponse , _ ) = await _testContext . ExecutePostAtomicAsync < Document > ( route , requestBody ) ;
@@ -564,16 +564,16 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
564
564
store . Document . Operations . Should ( ) . NotBeNull ( ) ;
565
565
store . Document . Operations . Should ( ) . HaveCount ( 1 ) ;
566
566
567
- var operation = store . Document . Operations [ 0 ] ;
567
+ AtomicOperationObject ? operation = store . Document . Operations [ 0 ] ;
568
568
operation . Should ( ) . NotBeNull ( ) ;
569
569
operation . Data . Should ( ) . NotBeNull ( ) ;
570
570
operation . Data . SingleValue . Should ( ) . NotBeNull ( ) ;
571
571
572
- var relationships = operation . Data . SingleValue . Relationships ;
572
+ IDictionary < string , RelationshipObject ? > ? relationships = operation . Data . SingleValue . Relationships ;
573
573
relationships . Should ( ) . NotBeNull ( ) ;
574
574
relationships . Should ( ) . ContainKey ( "productFamily" ) ;
575
575
576
- var relationship = relationships [ "productFamily" ] ;
576
+ RelationshipObject ? relationship = relationships [ "productFamily" ] ;
577
577
relationship . Should ( ) . NotBeNull ( ) ;
578
578
relationship . Meta . Should ( ) . NotBeNull ( ) ;
579
579
@@ -608,7 +608,7 @@ public async Task Accepts_meta_in_data_of_atomic_add_resource_operation()
608
608
}
609
609
} ;
610
610
611
- string route = $ "/operations";
611
+ const string route = "/operations" ;
612
612
613
613
// Act
614
614
( HttpResponseMessage httpResponse , _ ) = await _testContext . ExecutePostAtomicAsync < Document > ( route , requestBody ) ;
@@ -620,7 +620,7 @@ public async Task Accepts_meta_in_data_of_atomic_add_resource_operation()
620
620
store . Document . Operations . Should ( ) . NotBeNull ( ) ;
621
621
store . Document . Operations . Should ( ) . HaveCount ( 1 ) ;
622
622
623
- var operation = store . Document . Operations [ 0 ] ;
623
+ AtomicOperationObject ? operation = store . Document . Operations [ 0 ] ;
624
624
operation . Should ( ) . NotBeNull ( ) ;
625
625
operation . Data . Should ( ) . NotBeNull ( ) ;
626
626
operation . Data . SingleValue . Should ( ) . NotBeNull ( ) ;
@@ -669,7 +669,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
669
669
}
670
670
} ;
671
671
672
- string route = "/operations" ;
672
+ const string route = "/operations" ;
673
673
674
674
// Act
675
675
( HttpResponseMessage httpResponse , _ ) = await _testContext . ExecutePostAtomicAsync < Document > ( route , requestBody ) ;
@@ -681,23 +681,23 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
681
681
store . Document . Operations . Should ( ) . NotBeNull ( ) ;
682
682
store . Document . Operations . Should ( ) . HaveCount ( 1 ) ;
683
683
684
- var operation = store . Document . Operations [ 0 ] ;
684
+ AtomicOperationObject ? operation = store . Document . Operations [ 0 ] ;
685
685
operation . Should ( ) . NotBeNull ( ) ;
686
686
operation . Meta . Should ( ) . NotBeNull ( ) ;
687
687
688
688
ValidateMetaData ( operation . Meta ) ;
689
689
690
690
await _testContext . RunOnDatabaseAsync ( async dbContext =>
691
691
{
692
- var ticketInDatabase = await dbContext . SupportTickets
692
+ SupportTicket ? supportTicketInDatabase = await dbContext . SupportTickets
693
693
. Include ( supportTicket => supportTicket . ProductFamily )
694
694
. FirstAsync ( supportTicket => supportTicket . Id == existingTicket . Id ) ;
695
695
696
- ticketInDatabase . ProductFamily . Should ( ) . BeNull ( ) ;
696
+ supportTicketInDatabase . ProductFamily . Should ( ) . BeNull ( ) ;
697
697
} ) ;
698
698
}
699
699
700
- private static Object GetExampleMetaData ( )
700
+ private static object GetExampleMetaData ( )
701
701
{
702
702
return new
703
703
{
0 commit comments