@@ -14,6 +14,8 @@ public class AblySandboxFixture
1414
1515 private static Dictionary < string , TestEnvironmentSettings > _settings = new Dictionary < string , TestEnvironmentSettings > ( ) ;
1616
17+ private static Protocol sandboxJsonProtocol = Protocol . Json ;
18+
1719 public async Task < TestEnvironmentSettings > GetSettings ( string environment = null )
1820 {
1921 environment = environment ?? "sandbox" ;
@@ -47,11 +49,11 @@ private static async Task<TestEnvironmentSettings> Initialise(string environment
4749 CipherMode . CBC ,
4850 ( ( string ) cipher [ "iv" ] ) . FromBase64 ( ) ) ;
4951
50- var request = new AblyRequest ( "/apps" , HttpMethod . Post ) ;
52+ var request = new AblyRequest ( "/apps" , HttpMethod . Post , sandboxJsonProtocol ) ;
5153 request . Headers . Add ( "Accept" , "application/json" ) ;
5254 request . Headers . Add ( "Content-Type" , "application/json" ) ;
5355 request . RequestBody = testAppSpec [ "post_apps" ] . ToString ( ) . GetBytes ( ) ;
54- request . Protocol = Protocol . Json ;
56+ request . Protocol = sandboxJsonProtocol ;
5557
5658 AblyHttpClient client = settings . GetHttpClient ( environment ) ;
5759 var response = await RetryExecute ( ( ) => client . Execute ( request ) ) ;
@@ -114,8 +116,8 @@ private static async Task SetupSampleStats(TestEnvironmentSettings settings)
114116 json = json . Replace ( "[[Interval3]]" , interval3 . ToString ( "yyyy-MM-dd:HH:mm" ) ) ;
115117
116118 AblyHttpClient client = settings . GetHttpClient ( ) ;
117- var request = new AblyRequest ( "/stats" , HttpMethod . Post ) ;
118- request . Protocol = Protocol . Json ;
119+ var request = new AblyRequest ( "/stats" , HttpMethod . Post , sandboxJsonProtocol ) ;
120+ request . Protocol = sandboxJsonProtocol ;
119121 request . Headers . Add ( "Accept" , "application/json" ) ;
120122 request . Headers . Add ( "Content-Type" , "application/json" ) ;
121123
0 commit comments