Exemple #1
0
 public void PutConfig_ThrowsArgumentExceptionOnBadArgs()
 {
     try
     {
         RemoteConfigWebApiClient.PutConfig(null, null, null, null);
     }
     catch (ArgumentException ex)
     {
         Assert.That(ex.GetType() == typeof(ArgumentException));
     }
 }
Exemple #2
0
        void PushSettings(JArray settingsArr)
        {
            isMakingHttpCall = true;
            var newSettings = new JArray();

            foreach (var t in settingsArr)
            {
                newSettings.Add(t["rs"].DeepClone());
            }

            RemoteConfigWebApiClient.settingsRequestFinished += RemoteConfigWebApiClient_settingsRequestFinished;
            RemoteConfigWebApiClient.PutConfig(Application.cloudProjectId, environmentId, configId, newSettings);
        }