This commit is contained in:
@@ -233,7 +233,11 @@ namespace raven_integration
|
||||
|
||||
public static void ValidateDataReturnResponseOk(ApiResponse a)
|
||||
{
|
||||
a.ObjectResponse["error"].Should().BeNull("There should not be an error on an api call");
|
||||
var ErrorMessage = string.Empty;
|
||||
var ERR = a.ObjectResponse["error"];
|
||||
if (ERR != null)
|
||||
ErrorMessage = ERR.Value<string>();
|
||||
a.ObjectResponse["error"].Should().BeNull("because there should not be an error on an api call, error was: {0}", ErrorMessage);
|
||||
a.ObjectResponse["result"].Should().NotBeNull("A result should be returned");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user