This commit is contained in:
2018-12-04 00:53:54 +00:00
parent aaf21ce881
commit d9dad8ea8a

View File

@@ -152,6 +152,20 @@ namespace raven_integration
//assert contains at least two records
((JArray)a.ObjectResponse["data"]).Count.Should().BeGreaterThan(1);
var v = ((JArray)a.ObjectResponse["data"]);
List<long> IDInResultList = new List<long>();
int nActiveMatches = 0;
int nInactiveMatches = 0;
foreach (JObject o in v)
{
if (ActiveWidgetIdList.Contains(o["id"].Value<long>()))
nActiveMatches++;
if (NotActiveWidgetIdList.Contains(o["id"].Value<long>()))
nInactiveMatches++;
}
nActiveMatches.Should().Be(ActiveWidgetIdList.Count);
nInactiveMatches.Should().Be(0);
//TODO: ensure the results match the appropriate matching widgetIDList made earlier