public ListColumns ( long sheetId, IEnumerable |
||
sheetId | long | the sheet Id |
include | IEnumerable |
elements to include in response |
paging | the paging | |
return | PaginatedResult |
public virtual void TestListColumns() { server.setResponseBody("../../../TestSDK/resources/listColumns.json"); IList <Column> columns = sheetColumnResourcesImpl.ListColumns(1234L); Assert.True(columns.Count == 1); Assert.AreEqual(columns[0].Title, "something new"); }
public virtual void TestListColumns() { server.setResponseBody("../../../TestSDK/resources/listColumns.json"); PaginatedResult <Column> result = sheetColumnResourcesImpl.ListColumns(1234L, new List <ColumnInclusion> { ColumnInclusion.FILTERS }, null); Assert.True(result.TotalCount == 9); Assert.AreEqual(result.Data[2].Title, "Start"); Assert.IsTrue(result.Data[3].Filter != null); Assert.AreEqual(result.Data[3].Filter.Criteria[0].Operator, CriteriaOperator.GREATER_THAN); Assert.AreEqual(result.Data[3].Filter.Criteria[0].Value1, "2015-07-14"); Assert.IsTrue(result.Data[7].Filter == null); Assert.AreEqual(result.Data[7].Options.Count, 5); Assert.AreEqual(result.Data[7].Options[3], "At Risk"); }