@@ -265,8 +265,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
265
265
266
266
await _testContext . RunOnDatabaseAsync ( async dbContext =>
267
267
{
268
- SupportTicket ? supportTicketInDatabase = await dbContext . SupportTickets
269
- . Include ( supportTicket => supportTicket . ProductFamily )
268
+ SupportTicket ? supportTicketInDatabase = await dbContext . SupportTickets . Include ( supportTicket => supportTicket . ProductFamily )
270
269
. FirstAsync ( supportTicket => supportTicket . Id == existingTicket . Id ) ;
271
270
272
271
supportTicketInDatabase . ProductFamily . Should ( ) . BeNull ( ) ;
@@ -689,8 +688,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
689
688
690
689
await _testContext . RunOnDatabaseAsync ( async dbContext =>
691
690
{
692
- SupportTicket ? supportTicketInDatabase = await dbContext . SupportTickets
693
- . Include ( supportTicket => supportTicket . ProductFamily )
691
+ SupportTicket ? supportTicketInDatabase = await dbContext . SupportTickets . Include ( supportTicket => supportTicket . ProductFamily )
694
692
. FirstAsync ( supportTicket => supportTicket . Id == existingTicket . Id ) ;
695
693
696
694
supportTicketInDatabase . ProductFamily . Should ( ) . BeNull ( ) ;
@@ -753,42 +751,42 @@ private static void ValidateMetaData(IDictionary<string, object?>? meta)
753
751
string innerJson = value . Should ( ) . BeOfType < JsonElement > ( ) . Subject . ToString ( ) ;
754
752
755
753
innerJson . Should ( ) . BeJson ( """
756
- [
757
- "login",
758
- "single-sign-on"
759
- ]
760
- """ ) ;
754
+ [
755
+ "login",
756
+ "single-sign-on"
757
+ ]
758
+ """ ) ;
761
759
} ) ;
762
760
763
761
meta . Should ( ) . ContainKey ( "relatedTo" ) . WhoseValue . With ( value =>
764
762
{
765
763
string innerJson = value . Should ( ) . BeOfType < JsonElement > ( ) . Subject . ToString ( ) ;
766
764
767
765
innerJson . Should ( ) . BeJson ( """
768
- [
769
- {
770
- "id": 123,
771
- "link": "https://www.ticket-system.com/bugs/123"
772
- },
773
- {
774
- "id": 789,
775
- "link": "https://www.ticket-system.com/bugs/789"
776
- }
777
- ]
778
- """ ) ;
766
+ [
767
+ {
768
+ "id": 123,
769
+ "link": "https://www.ticket-system.com/bugs/123"
770
+ },
771
+ {
772
+ "id": 789,
773
+ "link": "https://www.ticket-system.com/bugs/789"
774
+ }
775
+ ]
776
+ """ ) ;
779
777
} ) ;
780
778
781
779
meta . Should ( ) . ContainKey ( "contextInfo" ) . WhoseValue . With ( value =>
782
780
{
783
781
string innerJson = value . Should ( ) . BeOfType < JsonElement > ( ) . Subject . ToString ( ) ;
784
782
785
783
innerJson . Should ( ) . BeJson ( """
786
- {
787
- "source": "form-submission",
788
- "retries": 1,
789
- "authenticated": false
790
- }
791
- """ ) ;
784
+ {
785
+ "source": "form-submission",
786
+ "retries": 1,
787
+ "authenticated": false
788
+ }
789
+ """ ) ;
792
790
} ) ;
793
791
}
794
792
0 commit comments