This commit is contained in:
@@ -78,8 +78,8 @@ namespace raven_integration
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
//Create it
|
//Create it
|
||||||
// a = await Util.PostAsync("FormCustom", await Util.GetTokenAsync("BizAdminFull"), d.ToString());
|
a = await Util.PostAsync("FormCustom", await Util.GetTokenAsync("BizAdminFull"), d.ToString());
|
||||||
// Util.ValidateDataReturnResponseOk(a);
|
Util.ValidateDataReturnResponseOk(a);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
2
util.cs
2
util.cs
@@ -247,6 +247,8 @@ namespace raven_integration
|
|||||||
|
|
||||||
public static void ValidateDataReturnResponseOk(ApiResponse a)
|
public static void ValidateDataReturnResponseOk(ApiResponse a)
|
||||||
{
|
{
|
||||||
|
a.ObjectResponse.Should().NotBeNull("No response was found at all?! Nothing to validate");
|
||||||
|
|
||||||
var ErrorMessage = string.Empty;
|
var ErrorMessage = string.Empty;
|
||||||
var ERR = a.ObjectResponse["error"];
|
var ERR = a.ObjectResponse["error"];
|
||||||
if (ERR != null)
|
if (ERR != null)
|
||||||
|
|||||||
Reference in New Issue
Block a user