2020using Trinsic . Services . VerifiableCredentials . V1 ;
2121using FieldType = Trinsic . Services . VerifiableCredentials . Templates . V1 . FieldType ;
2222using JsonSerializer = System . Text . Json . JsonSerializer ;
23+
2324#pragma warning disable CS0618
2425
2526namespace Tests ;
@@ -32,9 +33,9 @@ public class Tests
3233 const int DefaultPort = 5000 ;
3334 const bool DefaultUseTls = false ;
3435#else
35- const string DefaultEndpoint = "staging-internal.trinsic.cloud" ;
36- const int DefaultPort = 443 ;
37- const bool DefaultUseTls = true ;
36+ private const string DefaultEndpoint = "staging-internal.trinsic.cloud" ;
37+ private const int DefaultPort = 443 ;
38+ private const bool DefaultUseTls = true ;
3839#endif
3940
4041 private readonly ITestOutputHelper _testOutputHelper ;
@@ -67,9 +68,9 @@ public async Task TestWalletService() {
6768 // SETUP ACTORS
6869 // Create 3 different profiles for each participant in the scenario
6970 // setupActors() {
70- var allison = await accountService . SignInAsync ( new SignInRequest { EcosystemId = ecosystemId } ) ;
71- var clinic = await accountService . SignInAsync ( new SignInRequest { EcosystemId = ecosystemId } ) ;
72- var airline = await accountService . SignInAsync ( new SignInRequest { EcosystemId = ecosystemId } ) ;
71+ var allison = await accountService . SignInAsync ( new ( ) { EcosystemId = ecosystemId } ) ;
72+ var clinic = await accountService . SignInAsync ( new ( ) { EcosystemId = ecosystemId } ) ;
73+ var airline = await accountService . SignInAsync ( new ( ) { EcosystemId = ecosystemId } ) ;
7374 // }
7475
7576 accountService . Options . AuthToken = clinic ;
@@ -251,7 +252,7 @@ public async Task TestInvitationIdSet() {
251252 invitationResponse . Should ( ) . NotBeNull ( ) ;
252253 invitationResponse . InvitationCode . Should ( ) . NotBeEmpty ( ) ;
253254
254- await Assert . ThrowsAsync < Exception > ( async ( ) => await providerService . InvitationStatusAsync ( new InvitationStatusRequest ( ) ) ) ;
255+ await Assert . ThrowsAsync < Exception > ( async ( ) => await providerService . InvitationStatusAsync ( new ( ) ) ) ;
255256 }
256257
257258 [ Fact ( Skip = "Ecosystem support not complete yet" ) ]
@@ -263,7 +264,7 @@ public async Task TestInviteParticipant() {
263264 var response = await myProviderService . InviteParticipantAsync ( invite ) ;
264265 Assert . NotNull ( response ) ;
265266
266- var statusResponse = await myProviderService . InvitationStatusAsync ( new InvitationStatusRequest { InvitationId = response . InvitationId } ) ;
267+ var statusResponse = await myProviderService . InvitationStatusAsync ( new ( ) { InvitationId = response . InvitationId } ) ;
267268 Assert . NotNull ( statusResponse ) ;
268269 }
269270
@@ -352,12 +353,11 @@ public async Task DemoTemplatesWithIssuance() {
352353 }
353354 }
354355}
355-
356356public static class Extensions
357357{
358358 public static ServiceOptions CloneWithAuthToken ( this ServiceOptions options , string authToken ) {
359359 var cloned = options . Clone ( ) ;
360360 cloned . AuthToken = authToken ;
361361 return cloned ;
362362 }
363- }
363+ }
0 commit comments