using Xunit; using Newtonsoft.Json.Linq; using FluentAssertions; namespace raven_integration { public class DataListMiniVariant { /// /// /// [Fact] public async void ListShouldFetchAsMiniVersion() { ApiResponse a = await Util.PostAsync($"DataList", await Util.GetTokenAsync("manager", "l3tm3in"), Util.BuildDataListRequest(null, null, 3, 0, true)); Util.ValidateDataReturnResponseOk(a); //Assert the data array //Data array should contain 3 arrays var rows = ((JArray)a.ObjectResponse["data"]); rows.Count.Should().Be(3); //each array inside data array should have three objects foreach (JArray row in rows) { row.Count.Should().Be(3); } //assert the columns array //the columns property should define two columns and the first should be df and the second should be Widget dt4 var columns = ((JArray)a.ObjectResponse["columns"]); columns.Count.Should().Be(2); } //================================================== }//eoc }//eons