This commit is contained in:
2018-11-12 18:40:21 +00:00
parent e101a6eb80
commit 719b8c4eeb
2 changed files with 5 additions and 4 deletions

View File

@@ -58,8 +58,9 @@ namespace raven_integration
List<string> keys = new List<string>();
keys.AddRange(new string[] { "AddressType", "ClientName", "RateName", "WorkorderService" });
dynamic d = new JObject();
d.localeId = 1;
d.keys = JToken.FromObject(keys);
//d.localeId = 1;
//d.keys = JToken.FromObject(keys);
d = JToken.FromObject(keys);
ApiResponse a = await Util.PostAsync("Locale/subset", await Util.GetTokenAsync("ClientLimited"), d.ToString());
Util.ValidateDataReturnResponseOk(a);
@@ -142,7 +143,7 @@ namespace raven_integration
checkPUTWorked = await Util.PostAsync("Locale/subset", await Util.GetTokenAsync("ClientLimited"), d3.ToString());
Util.ValidateDataReturnResponseOk(checkPUTWorked);
Util.ValidateHTTPStatusCode(checkPUTWorked, 200);
Util.ValidateHTTPStatusCode(checkPUTWorked, 200);
((JArray)checkPUTWorked.ObjectResponse["data"]).Count.Should().Be(1);
var FirstLocaleKeyUpdated = ((JArray)checkPUTWorked.ObjectResponse["data"])[0];