4648
This commit is contained in:
@@ -26,7 +26,6 @@ namespace raven_integration
|
|||||||
D1.roles = 0;//norole
|
D1.roles = 0;//norole
|
||||||
D1.userType = 2;// not service type user
|
D1.userType = 2;// not service type user
|
||||||
D1.notes = "notes";
|
D1.notes = "notes";
|
||||||
D1.customFields = Util.UserRequiredCustomFieldsJsonString();
|
|
||||||
|
|
||||||
ApiResponse R = await Util.PostAsync("User", await Util.GetTokenAsync("superuser", "l3tm3in"), D1.ToString());
|
ApiResponse R = await Util.PostAsync("User", await Util.GetTokenAsync("superuser", "l3tm3in"), D1.ToString());
|
||||||
Util.ValidateDataReturnResponseOk(R);
|
Util.ValidateDataReturnResponseOk(R);
|
||||||
@@ -38,7 +37,7 @@ namespace raven_integration
|
|||||||
R = await Util.GetAsync("user-option/" + UserId.ToString(), await Util.GetTokenAsync("superuser", "l3tm3in"));
|
R = await Util.GetAsync("user-option/" + UserId.ToString(), await Util.GetTokenAsync("superuser", "l3tm3in"));
|
||||||
Util.ValidateDataReturnResponseOk(R);
|
Util.ValidateDataReturnResponseOk(R);
|
||||||
//ensure the default value is set
|
//ensure the default value is set
|
||||||
R.ObjectResponse["data"]["uiColor"].Value<string>().Should().Be("#000000");
|
R.ObjectResponse["data"]["uiColor"].Value<string>().Should().Be("#ffffffff");
|
||||||
uint concurrency = R.ObjectResponse["data"]["concurrency"].Value<uint>();
|
uint concurrency = R.ObjectResponse["data"]["concurrency"].Value<uint>();
|
||||||
|
|
||||||
//UPDATE
|
//UPDATE
|
||||||
|
|||||||
Reference in New Issue
Block a user