@@ -101,7 +101,7 @@ public async Task Accepts_top_level_meta_in_post_resource_request()
101101 meta = GetExampleMetaData ( )
102102 } ;
103103
104- string route = $ "/supportTickets";
104+ const string route = "/supportTickets" ;
105105
106106 // Act
107107 ( HttpResponseMessage httpResponse , _ ) = await _testContext . ExecutePostAsync < Document > ( route , requestBody ) ;
@@ -196,7 +196,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
196196 type = "supportTickets" ,
197197 attributes = new
198198 {
199- description = existingTicket . Description ,
199+ description = existingTicket . Description
200200 } ,
201201 relationships = new
202202 {
@@ -213,7 +213,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
213213 meta = GetExampleMetaData ( )
214214 } ;
215215
216- string route = $ "/supportTickets";
216+ const string route = "/supportTickets" ;
217217
218218 // Act
219219 ( HttpResponseMessage httpResponse , _ ) = await _testContext . ExecutePostAsync < Document > ( route , requestBody ) ;
@@ -265,7 +265,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
265265
266266 await _testContext . RunOnDatabaseAsync ( async dbContext =>
267267 {
268- var supportTicketInDatabase = await dbContext . SupportTickets
268+ SupportTicket ? supportTicketInDatabase = await dbContext . SupportTickets
269269 . Include ( supportTicket => supportTicket . ProductFamily )
270270 . FirstAsync ( supportTicket => supportTicket . Id == existingTicket . Id ) ;
271271
@@ -310,7 +310,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
310310 meta = GetExampleMetaData ( )
311311 } ;
312312
313- string route = $ "/operations";
313+ const string route = "/operations" ;
314314
315315 // Act
316316 ( HttpResponseMessage httpResponse , _ ) = await _testContext . ExecutePostAtomicAsync < Document > ( route , requestBody ) ;
@@ -351,7 +351,7 @@ public async Task Accepts_top_level_meta_in_atomic_add_resource_operation()
351351 meta = GetExampleMetaData ( )
352352 } ;
353353
354- string route = $ "/operations";
354+ const string route = "/operations" ;
355355
356356 // Act
357357 ( HttpResponseMessage httpResponse , _ ) = await _testContext . ExecutePostAtomicAsync < Document > ( route , requestBody ) ;
@@ -396,7 +396,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
396396 meta = GetExampleMetaData ( )
397397 } ;
398398
399- string route = $ "/operations";
399+ const string route = "/operations" ;
400400
401401 // Act
402402 ( HttpResponseMessage httpResponse , string responseDocument ) = await _testContext . ExecutePostAtomicAsync < string > ( route , requestBody ) ;
@@ -471,7 +471,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
471471 type = "supportTickets" ,
472472 attributes = new
473473 {
474- description = existingTicket . Description ,
474+ description = existingTicket . Description
475475 } ,
476476 relationships = new
477477 {
@@ -488,7 +488,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
488488 }
489489 } ;
490490
491- string route = $ "/supportTickets";
491+ const string route = "/supportTickets" ;
492492
493493 // Act
494494 ( HttpResponseMessage httpResponse , _ ) = await _testContext . ExecutePostAsync < Document > ( route , requestBody ) ;
@@ -500,7 +500,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
500500 store . Document . Data . SingleValue . Should ( ) . NotBeNull ( ) ;
501501 store . Document . Data . SingleValue . Relationships . Should ( ) . NotBeNull ( ) ;
502502 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 ( ) ;
504504 relationship ! . Meta . Should ( ) . NotBeNull ( ) ;
505505
506506 ValidateMetaData ( relationship . Meta ) ;
@@ -552,7 +552,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
552552 }
553553 } ;
554554
555- string route = "/operations" ;
555+ const string route = "/operations" ;
556556
557557 // Act
558558 ( HttpResponseMessage httpResponse , _ ) = await _testContext . ExecutePostAtomicAsync < Document > ( route , requestBody ) ;
@@ -564,16 +564,16 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
564564 store . Document . Operations . Should ( ) . NotBeNull ( ) ;
565565 store . Document . Operations . Should ( ) . HaveCount ( 1 ) ;
566566
567- var operation = store . Document . Operations [ 0 ] ;
567+ AtomicOperationObject ? operation = store . Document . Operations [ 0 ] ;
568568 operation . Should ( ) . NotBeNull ( ) ;
569569 operation . Data . Should ( ) . NotBeNull ( ) ;
570570 operation . Data . SingleValue . Should ( ) . NotBeNull ( ) ;
571571
572- var relationships = operation . Data . SingleValue . Relationships ;
572+ IDictionary < string , RelationshipObject ? > ? relationships = operation . Data . SingleValue . Relationships ;
573573 relationships . Should ( ) . NotBeNull ( ) ;
574574 relationships . Should ( ) . ContainKey ( "productFamily" ) ;
575575
576- var relationship = relationships [ "productFamily" ] ;
576+ RelationshipObject ? relationship = relationships [ "productFamily" ] ;
577577 relationship . Should ( ) . NotBeNull ( ) ;
578578 relationship . Meta . Should ( ) . NotBeNull ( ) ;
579579
@@ -608,7 +608,7 @@ public async Task Accepts_meta_in_data_of_atomic_add_resource_operation()
608608 }
609609 } ;
610610
611- string route = $ "/operations";
611+ const string route = "/operations" ;
612612
613613 // Act
614614 ( HttpResponseMessage httpResponse , _ ) = await _testContext . ExecutePostAtomicAsync < Document > ( route , requestBody ) ;
@@ -620,7 +620,7 @@ public async Task Accepts_meta_in_data_of_atomic_add_resource_operation()
620620 store . Document . Operations . Should ( ) . NotBeNull ( ) ;
621621 store . Document . Operations . Should ( ) . HaveCount ( 1 ) ;
622622
623- var operation = store . Document . Operations [ 0 ] ;
623+ AtomicOperationObject ? operation = store . Document . Operations [ 0 ] ;
624624 operation . Should ( ) . NotBeNull ( ) ;
625625 operation . Data . Should ( ) . NotBeNull ( ) ;
626626 operation . Data . SingleValue . Should ( ) . NotBeNull ( ) ;
@@ -669,7 +669,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
669669 }
670670 } ;
671671
672- string route = "/operations" ;
672+ const string route = "/operations" ;
673673
674674 // Act
675675 ( HttpResponseMessage httpResponse , _ ) = await _testContext . ExecutePostAtomicAsync < Document > ( route , requestBody ) ;
@@ -681,23 +681,23 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
681681 store . Document . Operations . Should ( ) . NotBeNull ( ) ;
682682 store . Document . Operations . Should ( ) . HaveCount ( 1 ) ;
683683
684- var operation = store . Document . Operations [ 0 ] ;
684+ AtomicOperationObject ? operation = store . Document . Operations [ 0 ] ;
685685 operation . Should ( ) . NotBeNull ( ) ;
686686 operation . Meta . Should ( ) . NotBeNull ( ) ;
687687
688688 ValidateMetaData ( operation . Meta ) ;
689689
690690 await _testContext . RunOnDatabaseAsync ( async dbContext =>
691691 {
692- var ticketInDatabase = await dbContext . SupportTickets
692+ SupportTicket ? supportTicketInDatabase = await dbContext . SupportTickets
693693 . Include ( supportTicket => supportTicket . ProductFamily )
694694 . FirstAsync ( supportTicket => supportTicket . Id == existingTicket . Id ) ;
695695
696- ticketInDatabase . ProductFamily . Should ( ) . BeNull ( ) ;
696+ supportTicketInDatabase . ProductFamily . Should ( ) . BeNull ( ) ;
697697 } ) ;
698698 }
699699
700- private static Object GetExampleMetaData ( )
700+ private static object GetExampleMetaData ( )
701701 {
702702 return new
703703 {
0 commit comments