This commit is contained in:
2019-01-16 19:53:03 +00:00
parent 2a1f4f286e
commit 317636aa3f

View File

@@ -34,10 +34,20 @@ namespace raven_integration
dynamic dt = new JObject(); dynamic dt = new JObject();
dt.fld = "WidgetCustom1"; dt.fld = "WidgetCustom1";
dt.hide = false; dt.hide = false;
dt.required = false; dt.required = true;
dt.type = "date"; dt.type = "date";
dtemplate.Add(dt); dtemplate.Add(dt);
dt = new JObject();
dt.fld = "WidgetSerial";
dt.required = true;
dtemplate.Add(dt);
dt = new JObject();
dt.fld = "WidgetNotes";
dt.required = true;
dtemplate.Add(dt);
dt = new JObject(); dt = new JObject();
dt.fld = "WidgetCustom2"; dt.fld = "WidgetCustom2";
dt.hide = true; dt.hide = true;
@@ -71,7 +81,7 @@ namespace raven_integration
uint token = a.ObjectResponse["data"]["concurrencyToken"].Value<uint>(); uint token = a.ObjectResponse["data"]["concurrencyToken"].Value<uint>();
//This should return a 304 not modified //This should return a 304 not modified
a = await Util.GetAsync($"FormCustom/widget?concurrencyToken={token}", await Util.GetTokenAsync("BizAdminFull")); a = await Util.GetAsync($"FormCustom/widget?concurrencyToken={token}", await Util.GetTokenAsync("BizAdminFull"));
Util.ValidateHTTPStatusCode(a,304); Util.ValidateHTTPStatusCode(a, 304);
//and this should return the whole object //and this should return the whole object
token--;//make the token not match token--;//make the token not match