Shorten concurrencytoken to concurrency
This commit is contained in:
@@ -78,7 +78,7 @@ namespace raven_integration
|
||||
a.ObjectResponse["data"]["name"].Value<string>().Should().Be(d.name.ToString());
|
||||
a.ObjectResponse["data"]["stock"].Value<bool>().Should().Be(false);
|
||||
a.ObjectResponse["data"]["id"].Value<long>().Should().BeGreaterThan(4);
|
||||
a.ObjectResponse["data"]["concurrencyToken"].Value<uint>().Should().BeGreaterThan(0);
|
||||
a.ObjectResponse["data"]["concurrency"].Value<uint>().Should().BeGreaterThan(0);
|
||||
((JArray)a.ObjectResponse["data"]["translationItems"]).Count.Should().BeGreaterThan(0);
|
||||
|
||||
long NewId = a.ObjectResponse["data"]["id"].Value<long>();
|
||||
@@ -89,7 +89,7 @@ namespace raven_integration
|
||||
dynamic d2 = new JObject();
|
||||
d2.id = NewId;
|
||||
d2.newText = Util.Uniquify("INTEGRATION-TEST-LOCALE NAME UPDATE");
|
||||
d2.concurrencyToken = a.ObjectResponse["data"]["concurrencyToken"].Value<uint>();
|
||||
d2.concurrency = a.ObjectResponse["data"]["concurrency"].Value<uint>();
|
||||
ApiResponse PUTTestResponse = await Util.PutAsync("Translation/UpdateTranslationName", await Util.GetTokenAsync("BizAdminFull"), d2.ToString());
|
||||
Util.ValidateHTTPStatusCode(PUTTestResponse, 200);
|
||||
|
||||
@@ -97,7 +97,7 @@ namespace raven_integration
|
||||
ApiResponse checkPUTWorked = await Util.GetAsync("Translation/" + NewId.ToString(), await Util.GetTokenAsync("BizAdminFull"));
|
||||
Util.ValidateNoErrorInResponse(checkPUTWorked);
|
||||
checkPUTWorked.ObjectResponse["data"]["name"].Value<string>().Should().Be(d2.newText.ToString());
|
||||
//uint concurrencyToken = PUTTestResponse.ObjectResponse["data"]["concurrencyToken"].Value<uint>();
|
||||
//uint concurrency = PUTTestResponse.ObjectResponse["data"]["concurrency"].Value<uint>();
|
||||
|
||||
|
||||
//Update translation key
|
||||
@@ -105,7 +105,7 @@ namespace raven_integration
|
||||
long UpdatedTranslationKeyId = FirstTranslationKey["id"].Value<long>();
|
||||
d2.id = UpdatedTranslationKeyId;
|
||||
d2.newText = Util.Uniquify("INTEGRATION-TEST-LOCALEITEM DISPLAY UPDATE");
|
||||
d2.concurrencyToken = FirstTranslationKey["concurrencyToken"].Value<uint>();
|
||||
d2.concurrency = FirstTranslationKey["concurrency"].Value<uint>();
|
||||
|
||||
string UpdatedTranslationKey = FirstTranslationKey["key"].Value<string>();
|
||||
|
||||
@@ -137,7 +137,7 @@ namespace raven_integration
|
||||
Util.ValidateDataReturnResponseOk(R);
|
||||
//ensure the default value is set
|
||||
R.ObjectResponse["data"]["uiColor"].Value<string>().Should().Be("#000000");
|
||||
uint concurrencyToken = R.ObjectResponse["data"]["concurrencyToken"].Value<uint>();
|
||||
uint concurrency = R.ObjectResponse["data"]["concurrency"].Value<uint>();
|
||||
|
||||
//UPDATE
|
||||
|
||||
@@ -145,7 +145,7 @@ namespace raven_integration
|
||||
dynamic D2 = new JObject();
|
||||
D2.translationId = NewId;
|
||||
|
||||
D2.concurrencyToken = concurrencyToken;
|
||||
D2.concurrency = concurrency;
|
||||
PUTTestResponse = await Util.PutAsync("UserOptions/" + DUSERID.ToString(), await Util.GetTokenAsync("manager", "l3tm3in"), D2.ToString());
|
||||
Util.ValidateHTTPStatusCode(PUTTestResponse, 200);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user