This commit is contained in:
2019-01-15 21:42:47 +00:00
parent 1cd9040770
commit 18ffe7eeaa

View File

@@ -66,8 +66,21 @@ namespace raven_integration
a = await Util.PostAsync("FormCustom", await Util.GetTokenAsync("BizAdminFull"), d.ToString());
Util.ValidateDataReturnResponseOk(a);
}
//check the concurrency token cache scheme
uint token = a.ObjectResponse["data"]["concurrencyToken"].Value<uint>();
//This should return a 304 not modified
a = await Util.GetAsync($"FormCustom/widget?concurrencyToken={token}", await Util.GetTokenAsync("BizAdminFull"));
Util.ValidateHTTPStatusCode(a,304);
//and this should return the whole object
token = token--;//make the token not match
//This should return a 200 and the whole object
a = await Util.GetAsync($"FormCustom/widget?concurrencyToken={token}", await Util.GetTokenAsync("BizAdminFull"));
Util.ValidateDataReturnResponseOk(a);
}
/// <summary>