Changed api response "result" to "data"

This commit is contained in:
2018-11-07 16:05:21 +00:00
parent e2330974f6
commit 6c7376f2e8
27 changed files with 227 additions and 270 deletions

View File

@@ -21,11 +21,11 @@ namespace raven_integration
Util.ValidateDataReturnResponseOk(a);
Util.ValidateHTTPStatusCode(a, 200);
//there should be at least 8 of them (at time of writing late March 2018)
((JArray)a.ObjectResponse["result"]).Count.Should().BeGreaterOrEqualTo(8);
((JArray)a.ObjectResponse["data"]).Count.Should().BeGreaterOrEqualTo(8);
//Number 2 is widget and list is zero based so confirm:
a.ObjectResponse["result"][2]["id"].Value<long>().Should().Be(2);
a.ObjectResponse["result"][2]["name"].Value<string>().Should().Be("Widget [Attachable] [Taggable]");
a.ObjectResponse["data"][2]["id"].Value<long>().Should().Be(2);
a.ObjectResponse["data"][2]["name"].Value<string>().Should().Be("Widget [Attachable] [Taggable]");
}